Exercise 2.1 | Installing a Named Instance |
Exercise 3.1 | Starting and Stopping Services |
Exercise 3.2 | Configuring Service Properties |
Exercise 3.3 | Configuring Protocols |
Exercise 3.4 | Performing the Initial SSMS Configuration |
Exercise 3.5 | Opening a New Query Window and Viewing the Error List |
Exercise 3.6 | Viewing Predesigned Reports |
Exercise 3.7 | Generating Administrative Task Scripts |
Exercise 3.8 | Creating a New Project and a New Solution |
Exercise 3.9 | Creating a New Project in an Existing Solution |
Exercise 3.10 | Deleting a Project from a Solution |
Exercise 3.11 | Using the Import and Export Wizard |
Exercise 3.12 | Configuring IP Settings in the GUI |
Exercise 3.13 | Opening the Windows Command Prompt |
Exercise 3.14 | Configuring the Windows Firewall |
Exercise 4.1 | Preparing Your System for the Batch File |
Exercise 4.2 | Creating the Batch File |
Exercise 4.3 | Running the Batch File |
Exercise 7.1 | Preparing the Visio Environment for Entity Relationship Diagramming |
Exercise 7.2 | Creating the Visio Entity Relationship Diagram |
Exercise 7.3 | Creating Relationships Between Entities |
Exercise 7.4 | Creating an ERD File |
Exercise 7.5 | Creating the Entities |
Exercise 7.6 | Creating Relationships |
Exercise 7.7 | Estimating the Size of a Clustered Index |
Exercise 7.8 | Estimating the Size of a Clustered Index Table |
Exercise 9.1 | Creating Multiple Filegroups |
Exercise 9.2 | Creating the Books Database in the GUI |
Exercise 9.3 | Detaching the Books Database in the GUI |
Exercise 9.4 | Attaching the Books Database in the GUI |
Exercise 10.1 | Assigning Collations at the Column Level |
Exercise 10.2 | Launching the Table Designer |
Exercise 10.3 | Creating Columns |
Exercise 10.4 | Selecting a Primary Key |
Exercise 10.5 | Specifying Table Properties and Saving the Table |
Exercise 10.6 | Scripting the Table for Documentation |
Exercise 11.1 | Setting the Primary Key |
Exercise 11.2 | Creating the LastName Nonclustered Index |
Exercise 11.3 | Creating the City Nonclustered Index |
Exercise 11.4 | Creating the Covering Index |
Exercise 11.5 | Creating the Filtered Index |
Exercise 11.6 | Creating a View |
Exercise 12.1 | Creating a DML Trigger |
Exercise 12.2 | Creating a DDL Trigger |
Exercise 13.1 | Installing Analysis Services |
Exercise 13.2 | Installing Integration Services |
Exercise 13.3 | Creating a Basic Integration Services Package |
Exercise 13.4 | Troubleshooting an SSIS Package with Debug |
Exercise 13.5 | Saving and Scheduling Packages |
Exercise 13.6 | Installing and Configuring Reporting Services |
Exercise 13.7 | Configuring Database Mail |
Exercise 13.8 | Creating a Full-Text Index |
Exercise 14.1 | Creating a T-SQL Job |
Exercise 14.2 | Creating the SSIS Export Package |
Exercise 14.3 | Creating an SSIS Job |
Exercise 14.4 | Creating a Batch File for Information Gathering |
Exercise 14.5 | Creating a Windows Command Job |
Exercise 14.6 | Creating an Operator |
Exercise 14.7 | Creating a SQL Server Alert in SSMS |
Exercise 14.8 | Creating a Free Drive Space Alert |
Exercise 15.1 | Generating a Deadlock Scenario |
Exercise 15.2 | Creating a Trace with SQL Server Profiler |
Exercise 15.3 | Creating a DTA Workload File in SQL Server Profiler |
Exercise 15.4 | Analyzing the Workload File with the DTA Tool |
Exercise 15.5 | Applying the Saved DTA Recommendations |
Exercise 15.6 | Installing the System Monitor in a Custom MMC |
Exercise 15.7 | Viewing Live Performance Data on Windows Server 2003 |
Exercise 15.8 | Viewing Live Performance Data on Windows Server 2008 R2 |
Exercise 15.9 | Creating a Performance Counter Log in Windows Server 2003 |
Exercise 15.10 | Creating a Data Collector Set in Windows Server 2008 R2 |
Exercise 15.11 | Adding SQL Server Counters to a Data Collector Set |
Exercise 15.12 | Creating the MDW for Performance Studio |
Exercise 15.13 | Setting Up Data Collection Options |
Exercise 15.14 | Viewing Performance Studio Reports |
Exercise 15.15 | Launching the Resource Monitor Directly |
Exercise 16.1 | Determining Read-Only Properties of Facets |
Exercise 16.2 | Importing the Microsoft Sample Policies |
Exercise 16.3 | Creating Custom Categories for Policies |
Exercise 16.4 | Subscribing to a Category |
Exercise 16.5 | Creating the conDatabaseSize Condition |
Exercise 16.6 | Creating the conPasswordRules Condition |
Exercise 16.7 | Creating the conSurfaceArea Condition |
Exercise 16.8 | Creating the polDatabaseSizeScheduled Policy |
Exercise 16.9 | Creating the polPasswordRulesPrevent Policy |
Exercise 16.10 | Creating the polSurfaceAreaLog Policy |
Exercise 16.11 | Creating a CMS in SSMS |
Exercise 16.12 | Creating Server Groups in the CMS |
Exercise 16.13 | Registering a Server |
Exercise 16.14 | Creating an Automated Event Log Monitoring Solution |
Exercise 17.1 | Setting the Recovery Model in SSMS |
Exercise 17.2 | Creating a Full Backup of the Database |
Exercise 17.3 | Creating a Backup Device That Points to a File |
Exercise 17.4 | Restoring to a Point in Time |
Exercise 17.5 | Backing Up the Tail Log After a Database File Storage Failure |
Exercise 17.6 | Starting the SQL Server Database Engine in Single-User Mode |
Exercise 17.7 | Installing Windows Server Backup |
Exercise 18.1 | Using the MBSA Utility from Microsoft |
Exercise 18.2 | Creating Strong Password Policies in Windows Domains |
Exercise 19.1 | Configuring the Authentication Mode in SSMS |
Exercise 19.2 | Creating a SQL Login |
Exercise 19.3 | Viewing Local Password Policies |
Exercise 19.4 | Creating Windows Logins |
Exercise 19.5 | Creating a Database Role with SSMS |
Exercise 19.6 | Creating a Database User |
Exercise 20.1 | Installing Microsoft SCM |
Exercise 20.2 | Creating a Custom Security Template |
Exercise 20.3 | Analyzing Security with Templates |
Exercise 20.4 | Creating a Baseline from Current Settings with SCW |
Exercise 20.5 | Managing Permissions in SQL Server Management Studio |
Exercise 20.6 | Enabling a SQL Server Audit |
Exercise 20.7 | Using sp_configure to Configure the Surface Area |
Exercise 20.8 | Configuring the Surface Area with PBM |
Exercise 20.9 | Enabling the C2 Audit Trace |
Exercise 22.1 | Installing Windows Failover Clustering |
Exercise 22.2 | Running the Validate A Configuration Wizard |
Exercise 22.3 | Creating a Failover Cluster |
Exercise 23.1 | Creating the Mirroring Endpoints |
Exercise 23.2 | Implementing Log Shipping |
Exercise 23.3 | Generating a Log Shipping Report |
Exercise 24.1 | Configuring the Publisher and Distributor |
Exercise 24.2 | Creating a Publication with a Single Table to Replicate the Production.Product Table |
Exercise 24.3 | Creating a Subscription |
Exercise 24.4 | Exporting Data with the Import/Export Wizard |
Exercise 26.1 | Signing a Package in SSDT |
Exercise 26.2 | Creating a Deployment Utility |
Exercise 26.3 | Deploying with the Package Installation Wizard |
Exercise 27.1 | Creating a Data Quality Project |
Senior Acquisitions Editor: Jeff Kellum
Development Editor: Jim Compton
Technical Editors: Mitchell Sellers and Denny Cherry
Production Editor: Liz Britten
Copy Editor: Kim Wimpsett
Editorial Manager: Pete Gaughan
Production Manager: Tim Tate
Vice President and Executive Group Publisher: Richard Swadley
Vice President and Publisher: Neil Edde
Media Project Manager 1: Laura Moss-Hollister
Media Associate Producer: Marilyn Hummel
Media Quality Assurance: Shawn Patrick
Book Designers: Judy Fung and Bill Gibson
Proofreader: Sarah Kaikini, WordOne New York
Indexer: Ted Laux
Project Coordinator, Cover: Katherine Crocker
Cover Designer: Ryan Sneed
Cover Image: iStockphoto.com / Sami Suni
Copyright © 2013 by John Wiley & Sons, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-1-118-48716-7
ISBN: 978-1-118-65473-6 (ebk.)
ISBN: 978-1-118-65490-3 (ebk.)
ISBN: 978-1-118-65468-2 (ebk.)
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 Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
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 Web site 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 Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites 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 or to obtain technical support, please contact our Customer Care Department within the U.S. at (877) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.
Library of Congress Control Number: 2013933939
TRADEMARKS: Wiley, the Wiley logo, and the Sybex logo 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 registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
10 9 8 7 6 5 4 3 2 1
Dear Reader,
Thank you for choosing Microsoft SQL Server 2012 Administration. This book is part of a family of premium-quality Sybex books, all of which are written by outstanding authors who combine practical experience with a gift for teaching.
Sybex was founded in 1976. More than 30 years later, we’re still committed to producing consistently exceptional books. With each of our titles, we’re working hard to set a new standard for the industry. From the paper we print on, to the authors we work with, our goal is to bring you the best books available.
I hope you see all that reflected in these pages. I’d be very interested to hear your comments and get your feedback on how we’re doing. Feel free to let me know what you think about this or any other Sybex book by sending me an email at nedde@wiley.com. If you think you’ve found a technical error in this book, please visit http://sybex.custhelp.com. Customer feedback is critical to our efforts at Sybex.
Best regards,
Neil Edde
Vice President and Publisher
Sybex, an Imprint of Wiley
I dedicate this book to my family and God—the two most important
relationships in my life. Thanks for all you do.
I would like to acknowledge the many people who have impacted my technology journey; Jeff Kellum, Jamie Franzman, Mark Minasi, Tim Green, Carl Behn, Rick LaFollette, Jan Richardson, Sharon Yoder, Kevin Sandlin, Devin Akin, and many more have impacted my life through the good, bad, and ugly. Thank you, all.
Tom Carpenter is a consultant and trainer based in Marysville, Ohio. He is the founder and current senior consultant for the Systems Education and Consulting Company (SysEdCo, LLC). SysEdCo provides technical content development services and training for Microsoft technologies, wireless networking, security, and IT professional development. Tom is the author of several books on topics ranging from wireless network administration to SQL Server database administration and optimization. He spends every spare moment he can with his amazing wife and children and his church family, where he is honored to pastor a fine group of believers.