by Mike Chapple Microsoft ® SQL Server ® 2008 FOR DUMmIES ‰ 01_224656-ffirs.indd iii01_224656-ffirs.indd iii 8/21/08 5:25:01 PM8/21/08 5:25:01 PM 01_224656-ffirs.indd ii01_224656-ffirs.indd ii 8/21/08 5:25:01 PM8/21/08 5:25:01 PM Microsoft ® SQL Server ® 2008 FOR DUMmIES ‰ 01_224656-ffirs.indd i01_224656-ffirs.indd i 8/21/08 5:25:01 PM8/21/08 5:25:01 PM 01_224656-ffirs.indd ii01_224656-ffirs.indd ii 8/21/08 5:25:01 PM8/21/08 5:25:01 PM by Mike Chapple Microsoft ® SQL Server ® 2008 FOR DUMmIES ‰ 01_224656-ffirs.indd iii01_224656-ffirs.indd iii 8/21/08 5:25:01 PM8/21/08 5:25:01 PM Microsoft ® SQL Server ® 2008 For Dummies ® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2008 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 permit- ted 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 http://www.wiley.com/go/permissions. 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, Dummies.com, Making Everything Easier, 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. SQL Server is a registered trademark 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 WITH- OUT 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 ORGANIZA- TION 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 www.wiley.com/techsupport. 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: 2008933745 ISBN: 978-0-470-22465-6 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 01_224656-ffirs.indd iv01_224656-ffirs.indd iv 8/21/08 5:25:01 PM8/21/08 5:25:01 PM About the Author Mike Chapple, MCDBA, CISA, CISSP is an IT professional with over ten years’ experience with SQL Server. He currently serves as an IT profes- sional with the University of Notre Dame, where he also teaches an undergraduate computer applications course. Mike actively participates as a subject matter expert in the SQL Server community and writes extensively on SQL Server at the About.com Guide to Databases. He also serves on the Center for Internet Security SQL Server security standard development team. Mike is a technical editor for Information Security Magazine and is author of several books, including Information Security Illuminated and the CISSP Prep Guide. Mike holds a BS in computer science from the University of Notre Dame, an MS in computer science from the University of Idaho, and an MBA from Auburn University. 01_224656-ffirs.indd v01_224656-ffirs.indd v 8/21/08 5:25:02 PM8/21/08 5:25:02 PM 01_224656-ffirs.indd vi01_224656-ffirs.indd vi 8/21/08 5:25:02 PM8/21/08 5:25:02 PM Dedication To my family: Renee, Richard, Matthew, and Christopher who lovingly put up with me during the hours I spent buried in my laptop writing this book. Author’s Acknowledgments I would like to thank Kyle Looper and Susan Christophersen, my editors at Wiley, who provided me with invaluable assis- tance throughout the book development process. I also owe a debt of gratitude to my literary agent, Carole Jelen of Waterside Productions. Doug Couch served as technical editor for this title and was a great source of advice as we worked through some of the more difficult portions of the book. I’d also like to thank the many people who participated in the production of this book but I never had the chance to meet: the graphics team, production staff, and all those involved in bringing this book to press. 01_224656-ffirs.indd vii01_224656-ffirs.indd vii 8/21/08 5:25:02 PM8/21/08 5:25:02 PM Publisher’s Acknowledgments We’re proud of this book; please send us your comments through our online registration form located at www.dummies.com/register/. Some of the people who helped bring this book to market include the following: Acquisitions, Editorial, and Media Development Project Editor: Susan Christophersen Acquisitions Editor: Kyle Looper Copy Editor: Susan Christophersen Technical Editor: Doug Couch Editorial Manager: Jodi Jensen Editorial Assistant: Amanda Foxworth Sr. Editorial Assistant: Cherie Case Cartoons: Rich Tennant ( www.the5thwave.com) Composition Services Project Coordinator: Katherine Key Layout and Graphics: Carl Byers, Reuben W. Davis Proofreader: Toni Settle Indexer: Broccoli Information Management 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 01_224656-ffirs.indd viii01_224656-ffirs.indd viii 8/21/08 5:25:02 PM8/21/08 5:25:02 PM [...]... stand-alone chunk of information Good luck in your SQL Server 2008 adventures! 03_224656-intro.indd 5 8/21/08 5:25:55 PM 6 Microsoft SQL Server 2008 For Dummies 03_224656-intro.indd 6 8/21/08 5:25:55 PM Part I Welcome to SQL Server 2008 04_224656-pp01.indd 7 8/21/08 5:26:13 PM I In this part n this first part, I give you an overview of SQL Server 2008 I point out the differences between SQL Server s... your first SQL Server installation up and running 04_224656-pp01.indd 8 8/21/08 5:26:14 PM Chapter 1 Introducing SQL Server 2008 In This Chapter ᮣ Understanding database basics ᮣ Choosing a SQL Server 2008 edition ᮣ Using SQL Server components ᮣ Implementing SQL Server databases ᮣ Finding additional information in SQL Server references S QL Server 2008 is Microsoft s enterprise-class database server, ... Introducing SQL Server 2008 15 Figure 1-2 : SQL Server Management Studio Reporting Services SQL Server Reporting Services underwent a significant overhaul before the release of SQL Server 2008 This platform allows you to design and publish dynamic reports based on SQL Server data I show an example of a report created with SQL Server Reporting Services in Figure 1-3 Figure 1-3 : Sample SQL Server Reporting... its platform Microsoft uses the name Transact -SQL (sometimes abbreviated as T -SQL) to refer to its extended version of SQL Similarly, Oracle calls its enhanced version PL /SQL I provide an in-depth exploration of both SQL and Transact -SQL in Parts III and IV of this book SQL Server components SQL Server provides a number of tools that facilitate your interactions with SQL Server Each is designed for a... database platform’s functionality Microsoft includes detailed online documentation with SQL Server 2008 in the form of SQL Server Books Online This documentation contains the latest information on SQL Server functionality for administrators and developers alike It’s a great place to turn when you’re seeking specific information about command syntax or advanced SQL Server features 05_224656-ch01.indd... I: Welcome to SQL Server 2008 7 Chapter 1: Introducing SQL Server 2008 .9 Starting Off on the Right Foot 10 Examining SQL Server editions 10 Checking system requirements 11 Understanding the Basic Components of SQL Server 13 SQL and Transact -SQL 13 SQL Server components 13 Implementing Databases with SQL Server 2008 16 Setting... the use of network protocols to access SQL Server ߜ Configure SQL Server Native Client connectivity Figure 1-1 : SQL Server Configuration Manager I discuss the use of SQL Server Configuration Manager in Chapter 3 SQL Server Management Studio SQL Server Management Studio (SSMS), shown in Figure 1-2 , is the database administrator’s primary interface to SQL Server 2008 It offers a fully functional management... 223 02_224656-ftoc.indd xv 8/21/08 5:25:27 PM xvi Microsoft SQL Server 2008 For Dummies Alerting Administrators about Database Events 228 Configuring database operators 228 Creating SQL Server alerts 229 Chapter 14: Troubleshooting SQL Server 2008 Problems 233 Understanding the Inner Workings of SQL Server Queries 233 Creating a trace with SQL Server Profiler ... and software platform are best suited for your SQL Server installation? I help you answer these questions in this section Examining SQL Server editions SQL Server is a complex product with a wide variety of services Most organizations need only a subset of that functionality Rather than charge a single high price for a one-size-fits-all software package, Microsoft offers SQL Server 2008 in a variety... Vista For Dummies to help you get started How This Book Is Organized This book is made up of seven parts that introduce you to Microsoft SQL Server 2008: ߜ Part I: Welcome to SQL Server 2008 provides you with an overview of SQL Server 2008 You find out about the differences between SQL Server s Express, Workgroup, Standard, and Enterprise editions so that you can select the one most appropriate for your . Introducing SQL Server 2008 9 Chapter 2: Building Your SQL Server 19 Chapter 3: Working with SQL Server Tools 35 Part II: Building SQL Server 2008 Databases. ii01_224656-ffirs.indd ii 8/21/08 5:25:01 PM8/21/08 5:25:01 PM Microsoft ® SQL Server ® 2008 FOR DUMmIES ‰ 01_224656-ffirs.indd i01_224656-ffirs.indd