Learn your way! Get started

SQL 2012 Admin, Part 2 of 5: Automating, Management, and Config

with expert Chris Bell

Watch trailer

Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 8/13/2013
Level Advanced
Runtime 1h 32m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included

Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More

Course description

During this course we will look into various methods to automate processes in SQL Server. We will go through configuring Database Mail so that you, as the DBA, can receive automated alerts from the server when something goes wrong. We’ll set up Operators to receive general alerts, custom alerts and then we’ll create, based on performance conditions, queries that run for long periods of time. We’ll review the DBCC commands that are critical to ensuring database integrity and providing valuable insight into what’s going on inside the SQL Server system. Then we will take advantage of the new SQL 2012 AlwaysOn Availability Group ability to let us offload some maintenance tasks from our primary servers to secondary servers. Next we are going to look at File Groups and show how we can use them to manage our data files and potentially improve the performance of queries and requests to SQL databases. Next we will create a new SQL 2012 Contained database and move it to a new server showing you just how easy it is to relocate databases using this feature. We will finish up by going over a large number of configuration options available to us in SQL Server. We will cover general and advanced settings and detail how each affects SQL Server.


This course assumes that students have working experience with SQL Server 2005 or 2008; basic relational database concepts (e.g., tables, queries, and indexing); general knowledge of XML, Transact-SQL, and a fundamental understanding of networking and security concepts.

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
SQL Server Administrator

Meet the expert

Chris Bell, MCITP, is an 18-year SQL Server veteran for both business intelligence and application development providing solutions for businesses, organizations, and individuals. He is the founder and CEO of WaterOx Consulting, Inc., a provider of remote SQL Server consulting and services. Chris is also the founder and current President of the Washington DC chapter of PASS and a member of the Board of Directors for CPCUG. Chris also frequently attends and presents at PASS events around the country, sharing his passion for all things SQL Server. In 2012, Chris was one of 5 finalists in the world for Red Gate’s Exceptional DBA Award.

Course outline

Automating SQL

Database Mail (11:02)
  • Introduction (00:27)
  • Database Mail (00:41)
  • Database Mail - Reliability (01:15)
  • Database Mail - Security (01:15)
  • Demo: Database Mail Config (05:17)
  • Demo: Config Using Scripts (01:51)
  • Summary (00:13)
Operators and Alerts (14:00)
  • Introduction (00:24)
  • Database Operators (01:02)
  • Demo: Creating an Operator (01:47)
  • Alerts - Types (01:40)
  • Demo: Alerts (04:08)
  • Demo: Longest Transaction Alert (04:39)
  • Summary (00:17)
DBCC Commands (06:19)
  • Introduction (00:24)
  • Automating DBCC CHECKDB (03:55)
  • Demo: Automating CHECKDB (01:43)
  • Summary (00:15)
Availability Group Backups (23:37)
  • Introduction (00:30)
  • Automating Backups (01:06)
  • Backups - Always On (01:20)
  • Demo: Automating Backups (05:33)
  • Demo: Transaction Logs (05:14)
  • Demo: Testing Backups (04:32)
  • Demo: Transaction Testing (05:09)
  • Summary (00:09)

Management and Configuration

Using File Groups (10:19)
  • Introduction (00:32)
  • File Groups (01:23)
  • Demo: File Groups (05:56)
  • Demo: File Group Index (02:14)
  • Summary (00:12)
Contained Databases (16:17)
  • Introduction (00:38)
  • Contained Databases (01:24)
  • Contained Databases - Pros (01:24)
  • Contained Databases - Cons (00:30)
  • Demo: Contained Databases (05:26)
  • Demo: Logging In (05:02)
  • Demo: Restoring a Database (01:37)
  • Summary (00:13)
Configuration Options (11:17)
  • Introduction (00:22)
  • SQL 2012 Configuration Options (05:21)
  • Demo: Advanced Options (02:13)
  • SQL 2012 Configuration Options (2) (03:04)
  • Summary (00:16)