Professional Documents
Culture Documents
1-800-COURSESwww.globalknowledge.com
Unlock the Power of Microsoft SQL
Server 2012
Brian D. Egler MCITP/MCSE/MCT 2012, Global Knowledge Course Director
Introduction
Are you ready to unlock the power of Microsoft SQL Server 2012? In this whitepaper we will examine three key
new features that show how SQL Server 2012 provides enterprise-level high-availability, powerful self-service
business analytics and ETL for data in the cloud.
Within this whitepaper, we will explore one selected new feature under each theme to give a feel for the capa-
bilities of the new release. Other features, while too numerous to describe here, are documented on the Micro-
soft web site at http://www.microsoft.com/sql. You can also download an evaluation copy of the software from
the same location.
Mission-Critical Confidence
Selected Feature: AlwaysOn for High Availability and Disaster Recovery
In previous SQL Server releases, we had four options for high availability (HA), namely, Server Clustering, Data-
base Mirroring, Log Shipping and Peer-to-Peer (P2P) Replication. Each solution has its pros and cons. Clustering
and mirroring provide automatic failover. Log shipping and P2P provide load balancing. Log shipping provides
the ability to create multiple read-only secondaries dispersed over great geographical distances for disaster re-
covery) sites. A common solution is to define a server cluster for HA combined with log shipping for DR, known
as HADR. Database mirroring only allows one mirror, and it is not available until after a failover. Log shipping
and replication do not support automatic failover. Replication also can require complex administration.
SQL Server 2012 effectively combines the pros of each of these solutions with its AlwaysOn functionality. There
are two flavors of AlwaysOn in SQL Server 2012:
AlwaysOn Failover Cluster Instances (FCI)
AlwaysOn Availability Groups (AG)
Both AlwaysOn technologies can be combined to provide Automatic Failover and Load Balancing in one effec-
tive HADR solution.
In order to setup an AlwaysOn AG, you can use the Availability Group Wizard within SQL Server Management
Studio. This wizard will walk you through the steps to create an availability group. It should be noted that each
SQL Server instance that hosts the AG must be on a separate node within a Windows Server Failover Cluster
(WSFC) as the failover functionality uses the WSFC services. This is in contrast to Database Mirroring that uses a
separate SQL Server instance as a witness for automatic failover.
The user databases contained in the AlwaysOn AG must all use the Full Recovery Model as the synchronization
of replicas is performed using the transaction log.
Within an AlwaysOn AG, you are allowed one primary replica and up to 4 secondary replicas giving a maximum
total of 5 replicas. Each instance has its own local data storage for its replica databases. The primary replica is
allowed to automatically failover to only one of the secondary replicas. These two replicas are called the Auto-
matic Failover Partners. However, you may manually failover to any of the secondary replicas using the Failover
Wizard. You can choose between Synchronous and Asynchronous Commit. Synchronous Commit performs
a distributed transaction that commits across the network on both the primary and the secondary replicas simul-
taneously. This is required for the Automatic Failover Partners so no data is lost during a failover but is optional
on the other secondary replicas to assist with better performance. All the secondary replicas can be used for
load balancing being setup as a readable secondary for instance, for reporting or backup jobs. If the primary
replica is configured for asynchronous-commit mode, it does not wait for any secondary replica to write incom-
ing transaction log records to disk (to harden the log).
The AlwaysOn AG, has a public Listener IP address and DNS name for use by the clients to access the current
primary replica, regardless of failover. The secondary replicas can be accessed directly for read-only access if they
are configured as a readable secondary. Read-intent only means the ReadOnly switch needs to be pro-
vided in the connection string by the application. If Readable Secondary is set to Yes, an ordinary connec-
tion string can be used to read the secondary replica. If Readable Secondary is set to No, no access will be
granted when operating as a secondary replica.
Breakthrough Insight
Selected Feature: PowerView for Self-Service BI within SSRS 2012 and SharepPoint
SQL Server Reporting Services (SSRS) 2005 introduced ReportBuilder, which was originally intended as an end-
user tool to build reports within a web browser. ReportBuilder has since evolved into a web-based developer
tool matching the functionality of the Visual Studio Report Designer. In SSRS 2012, Microsoft introduces Power-
View, which delivers a true self-service reporting tool within the SharePoint PowerPivot Gallery, supporting drag-
and-drop authoring and animated delivery. PowerView is ideally placed as an effective end-user reporting tool.
The PowerPivot Gallery can be used within SharePoint to develop PowerPivot solutions for self-service busi-
ness intelligence as well as PowerView reports. Both are user-friendly, supporting drag-and-drop and animated
reports using a Silverlight plugin. Users can select between chart types, sorting, grouping, and filtering criteria
using point-and-click. Resulting reports can be saved and then executed by other users as necessary directly
from the PowerPivot Gallery.
PowerView requires SQL Server 2012 Reporting Services running in SharePoint Integrated Mode.
Windows Azure and SQL Azure can be accessed directly using http://windows.azure.com . A 90-day free trial is
available. After that, a there is a monthly fee, based on storage requirements. You can create and populate SQL
Server databases using the web interface (Figure 6) or using SQL Server Management Studio remotely, access-
ing the database server using the fully qualified DNS name (FQDN) provided by the Windows Azure platform.
SSIS packages can also extract information from SQL Azure databases using the same FQDN in the Connection
Manager properties (shown in Figure 7). SQL Azure databases must use SQL Server authentication but can be
accessed using any of the SSIS Tasks provided in the SSIS Toolbox. In this way, accessing data in the cloud is es-
sentially the same as any other data source.
The Data Sync feature also allows bi-directional data synchronization across the cloud, supporting synchroni-
zation of disparate data sources across the enterprise:
In this way, the cloud can be used as another potential data source for extracting, transforming, and loading of
data into a Data Warehouse.
Learn More
To learn more about how you can improve productivity, enhance efficiency, and sharpen your competitive edge,
Global Knowledge suggests the following courses:
Updating your Database and Business Intelligence Skills to Microsoft SQL Server 2012
(M40008, M40009)
Implementing a Data Warehouse with Microsoft SQL Server 2012 (M10777)
Implementing Data Models and Reports with Microsoft SQL Server 2012 (M10778)
MCSA: SQL Server 2012 Boot Camp: 9 day class (NEW)
This course is composed of:
Three official Microsoft courses:
- Querying Microsoft SQL Server 2012 (M10774)
- Administering Microsoft SQL Server 2012 Databases (M10775)
- Implementing a Data Warehouse with Microsoft SQL Server 2012 (M10777)
Training Kits, Reference Books, Practice Tests
Intense immersion training including all 50+ labs for 6 months
Exam Vouchers for future use
Physical or Virtual Classroom