image

Table of Exercises

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

Microsoft® SQL
Server® 2012
Administration

Real World Skills for MCSA Certification and Beyond

Tom Carpenter

Carpenter Tom

Wiley Logo

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,

image

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.

Acknowledgments

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.

About the Author

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.