Microsoft SQL server 2005 programming for dummies apr 2007

435 18 0
  • Loading ...
1/435 trang
Tải xuống

Thông tin tài liệu

Ngày đăng: 12/07/2018, 14:33 - free books & magazines Microsoft® ™ SQL Server 2005 Programming FOR DUMmIES by Andrew Watt ‰ Microsoft® ™ SQL Server 2005 Programming FOR DUMmIES by Andrew Watt ‰ Microsoft® SQL Server™ 2005 Programming For Dummies® Published by Wiley Publishing, Inc 111 River Street Hoboken, NJ 07030-5774 Copyright © 2007 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way,, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc and/or its affiliates in the United States and other countries, and may not be used without written permission Microsoft and SQL Server are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries All other trademarks are the property of their respective owners Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ For general information on our other products and services, please contact our Customer Care Department within the U.S at 800-762-2974, outside the U.S at 317-572-3993, or fax 317-572-4002 For technical support, please visit Wiley also publishes its books in a variety of electronic formats Some content that appears in print may not be available in electronic books Library of Congress Control Number: 2006929469 ISBN: 978-0-471-77422-8 Manufactured in the United States of America 10 About the Author Andrew Watt wrote his first computer programs back in 1985 He is an independent consultant, experienced author, and Microsoft MVP (Most Valuable Professional) for SQL Server His areas of interest and expertise include SQL Server 2005, Windows PowerShell, XML, and Microsoft InfoPath Andrew first used SQL Server in version 7.0 and was an active participant in the SQL Server 2005 beta program from August 2003 Among the books Andrew has written, or co-written, are SQL Server 2005 For Dummies, Beginning Regular Expressions, Beginning XML (3rd edition), Beginning RSS & Atom Programming, Professional XML (2nd edition), and Designing SVG Web Graphics Andrew is often seen answering questions in Microsoft’s SQL Server and other newsgroups Feel free to get involved in the community there He can be contacted direct at Due to the volume of e-mail he receives, he can’t guarantee to respond to every e-mail Dedication To Jonathan, Stephen, Hannah, Jeremy, Peter, and Naomi Each a very special human being to me Author’s Acknowledgments Every technical book is the product of teamwork, and this book is no exception I particularly want to thank the technical editor, Damir Bersinic, who came up with many useful comments and good suggestions for additional material, but unfortunately, there wasn’t space to accept more than a few of them It would be nice if somebody invented elastic paper Until then, books are limited to being of a fixed size My thanks to Gavin Powell, who helped out with author review when other authoring commitments for Wiley meant I couldn’t slice myself in half I would also like to thank my acquisitions editor on this book, Kyle Looper Thanks are particularly due to Kyle for his patience as time slipped Isn’t that supposed to happen only in science fiction books? It’s been great working with Kim Darosett, my project editor, who has done so much to move the project forward to a successful conclusion I would also like to thank Heidi Unger, copy editor, whose attention to detail picked up some of those little errors that the rest of us had missed Thanks to all the team It has been a good experience for me working with you all Publisher’s Acknowledgments We’re proud of this book; please send us your comments through our online registration form located at Some of the people who helped bring this book to market include the following: Acquisitions, Editorial, and Media Development Composition Services Project Editor: Kim Darosett Project Coordinator: Patrick Redmond Copy Editor: Heidi Unger Layout and Graphics: Claudia Bell, Stephanie D Jumper, Barbara Moore, Ronald Terry Technical Editor: Damir Bersinic Proofreaders: Aptara, Christy Pingleton Editorial Manager: Leah Cameron Indexer: Aptara Media Development Manager: Laura VanWinkle Anniversary Logo Design: Richard Pacifico Senior Acquisitions Editor: Steven Hayes Editorial Assistant: Amanda Foxworth Sr Editorial Assistant: Cherie Case Cartoons: Rich Tennant ( Publishing and Editorial for Technology Dummies Richard Swadley, Vice President and Executive Group Publisher Andy Cummings, Vice President and Publisher Mary Bednarek, Executive Acquisitions Director Mary C Corder, Editorial Director Publishing for Consumer Dummies Diane Graves Steele, Vice President and Publisher Joyce Pepple, Acquisitions Director Composition Services Gerry Fahey, Vice President of Production Services Debbie Stailey, Director of Composition Services Contents at a Glance Introduction Part I: Get Started Using the SQL Server 2005 Development Environment .7 Chapter 1: The Joy of SQL Server 2005 Programming Chapter 2: Understanding Database Fundamentals 15 Chapter 3: Getting to Know the SQL Server Toolset 25 Part II: Retrieving Data Using Transact-SQL .45 Chapter 4: Retrieving Data Using the SELECT Statement 47 Chapter 5: Creating Joins 69 Chapter 6: Creating Advanced Queries 91 Chapter 7: Manipulating Data .105 Part III: Creating Databases and Database Objects with Transact-SQL 123 Chapter 8: Designing, Creating, and Altering Database Objects 125 Chapter 9: Designing, Creating, and Changing Tables .141 Chapter 10: Applying Constraints 163 Chapter 11: Creating Views 181 Chapter 12: Using Stored Procedures 193 Chapter 13: Using Triggers 209 Chapter 14: Creating Functions 227 Chapter 15: Creating Indexes 255 Chapter 16: Handling Errors Using TRY CATCH 267 Part IV: Programming SQL Server Security 281 Chapter 17: Adding Logins and Users 283 Chapter 18: Creating Database-Level Security 297 Chapter 19: Securing Data Using Encryption 307 .. .Microsoft ™ SQL Server 2005 Programming FOR DUMmIES by Andrew Watt ‰ Microsoft ™ SQL Server 2005 Programming FOR DUMmIES by Andrew Watt ‰ Microsoft SQL Server 2005 Programming For Dummies ... can probably find an edition of SQL Server 2005 that allows you to create the application that you want About SQL Server 2005 Programming For Dummies SQL Server 2005 is an immensely powerful and... out how to use SQL Server Management Studio to create TransactSQL code, go to Chapter SQL Server 2005 Programming For Dummies To discover how to retrieve data from SQL Server 2005, go to Chapter
- Xem thêm -

Xem thêm: Microsoft SQL server 2005 programming for dummies apr 2007 , Microsoft SQL server 2005 programming for dummies apr 2007 , Chapter 16: Handling Errors Using TRY...CATCH

Mục lục

Xem thêm

Gợi ý tài liệu liên quan cho bạn

Nhận lời giải ngay chưa đến 10 phút Đăng bài tập ngay