Session 2: SQL Server 2012 with Christian Malbeuf
Upcoming SlideShare
Loading in...5
×
 

Session 2: SQL Server 2012 with Christian Malbeuf

on

  • 865 views

CTE Ottawa Seminar Day - September 7th, 2012 ...

CTE Ottawa Seminar Day - September 7th, 2012
This clinic introduces the key features and enhancements in SQL Server 2012. It is designed to provide a high-level overview of the product and the key new capabilities in this release.

This course is intended for technology managers and database professionals who want to understand the key capabilities of SQL Server 2012. In many cases, it is assumed that senior technical managers may attend this clinic in order to assess the further training that their technology-focused employees will need in order to adopt SQL Server 2012.

Statistics

Views

Total Views
865
Views on SlideShare
862
Embed Views
3

Actions

Likes
0
Downloads
37
Comments
0

2 Embeds 3

http://www.ctesolutions.com 2
http://www.docshut.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Session 2: SQL Server 2012 with Christian Malbeuf Session 2: SQL Server 2012 with Christian Malbeuf Presentation Transcript

  • Module 1: Introduction to SQL Server 2012 CTE Ottawa Seminar Day September 7th, 2012
  • Module Overview• Enterprise Data Scenarios and Trends• SQL Server 2012 Overview
  • Lesson 1: Enterprise Data Scenarios and Trends• Common Data Workloads• Key Trend – Mission-Critical Data• Key Trend – Self-Service Business Intelligence• Key Trend – Big Data• Key Trend – Cloud Technologies• Key Trend – Appliances
  • Common Data Workloads Business Intelligence (BI) Data Warehousing (DW) Enterprise Integration Management (EIM) Online Transaction Processing (OLTP)
  • Key Trend – Mission-Critical Data• High availability• Fast, up-to-the-minute data recoverability
  • Key Trend – Self-Service Business Intelligence• Empower information workers• Reduce IT workload
  • Key Trend – Big Data• Large volumes of data• Many data sources• Diverse data formats
  • Key Trend – Cloud Technologies • Public Cloud • Private Cloud • Hybrid Solutions
  • Key Trend – Appliances• Pre-configured hardware and software solutions• Optimized for specific workloads• Generally purchased from a single supplier with a single support package
  • Lesson 2: SQL Server 2012 Overview• SQL Server 2012 Editions• SQL Server 2012 Components• SQL Server 2012 and Other Microsoft Technologies• SQL Server 2012 Licensing
  • SQL Server 2012 Editions Premium Editions Parallel Data Warehouse Enterprise Core Editions Business Intelligence Standard Other Editions Express Compact Developer SQL Azure Web
  • SQL Server 2012 Components• Not just a database engine• Relational and Business Intelligence Components SQL Server Components Database Engine Analysis Services Integration Services Reporting Services Master Data Services StreamInsight Data Mining Full-Text Search PowerPivot Replication Data Quality Services Power View
  • SQL Server 2012 and Other Microsoft TechnologiesProduct Relationship to SQL ServerMicrosoft Windows Server The operating system on which SQL Server is installedMicrosoft SharePoint Server A Web platform for collaboration through which users can access SQL Server Reporting Services, PowerPivot, and Power ViewMicrosoft System Center A suite of technologies for provisioning and managing server infrastructure. SQL Server can be deployed on virtual servers in a private cloud and managed by System CenterMicrosoft Office An information worker productivity suite that provides an intuitive way for users to consume SQL Server BI technologies and manage master data modelsThe .NET Framework A software development runtime that includes class libraries for creating applications that interact with data in a SQL Server databaseWindows Azure A cloud platform for developing applications that can leverage cloud-based databases and reporting
  • SQL Server 2012 Licensing • Core-based Licensing – licensing by computing power • Server + CAL Licensing – licensing by user • Virtual Machine Licensing – licensing VMs Edition Licensing Model Server + CAL Core-based Enterprise  Business Intelligence  Standard  
  • Module Review• Enterprise Data Scenarios and Trends• SQL Server 2012 Overview Learn more at www.microsoft.com/sqlserver
  • Module 2: SQL Server2012 as a Platform for Mission-Critical Data CTE Ottawa Seminar Day September 7th, 2012
  • Module Overview• Database Development Enhancements• Database Manageability Enhancements• Database Availability Enhancements
  • Lesson 1: Database Development Enhancements• Transact-SQL Enhancements• New Functions• Spatial Data Enhancements• Storing and Querying Documents
  • Transact-SQL Enhancements • The WITH RESULT SETS Clause EXECUTE GetOrderPickList SO59384 WITH RESULT SETS ( ([SalesOrder] nvarchar(20) NOT NULL,[LineItem] int, [Product] int, [Quantity] int) )• The THROW Statement THROW 50001, Customer doers not exist, 1• Paging with the OFFSET and FETCH Keywords SELECT SalesOrderNumber, OrderDate, CustomerName FROM SalesOrders ORDER BY SalesOrderNumber ASC OFFSET 20 ROWS FETCH NEXT 10 ROWS ONLY• Sequence Objects CREATE SEQUENCE OrderNumbers START WITH 1000 INCREMENT BY 10 ... CREATE TABLE Orders (OrderNumber int PRIMARY KEY DEFAULT(NEXT VALUE FOR OrderNumbers), CustomerKey int, ProductKey int, Quantity int)• The OVER Clause SELECT City, OrderYear, OrderQuantity, SUM(OrderQuantity) OVER (PARTITION BY City ORDER BY OrderYear ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RunningQty FROM CitySalesByYear
  • Demonstration: Using Transact-SQL EnhancementsIn this demonstration, you will see how to: Use the WITH RESULT SETS Clause Use the THROW Statement Implement Paging Use a Sequence Object Use the OVER Subclause
  • New FunctionsConversion FunctionsPARSE PARSE(£345.98 AS money USING en-GB)TRY_PARSE TRY_PARSE(£345.98 AS money USING en-US)TRY_CONVERT TRY_CONVERT(int, One)Date and Time FunctionsDATEFROMPARTS DATEFROMPARTS (2010, 12, 31)DATETIMEFROMPARTS DATETIMEFROMPARTS ( 2010, 12, 31, 23, 59, 59, 0 )SMALLDATETIMEFROMPARTS SMALLDATETIMEFROMPARTS ( 2010, 12, 31, 23, 59 )DATETIME2FROMPARTS DATETIME2FROMPARTS ( 2010, 12, 31, 23, 59, 59, 1, 7 )TIMEFROMPARTS TIMEFROMPARTS ( 23, 59, 59, 1, 5 )DATETIMEOFFSETFROMPARTS DATETIMEOFFSETFROMPARTS(2010,12,31,14,23,23,1,8,0,7)EOMONTH EOMONTH (GETDATE(), 1)Logical FunctionsCHOOSE CHOOSE (3,Cash,Credit Card,Debit Card,Invoice)IIF IIF(@i % 2 = 0, Even, Odd)String FunctionsCONCAT CONCAT(Firstname, , LastName)FORMAT FORMAT(UnitPrice, C, en-GB)
  • Demonstration: Using New FunctionsIn this demonstration, you will see how to: Use Conversion Functions Use Data and Time Functions Use Logical Functions Use String Functions
  • Spatial Data Enhancements• New Spatial Shapes CIRCULARSTRING COMPOUNDCURVE CURVEPOLYGON• Shapes larger than a Hemisphere• New FULLGLOBE Shape
  • Demonstration: Using Spatial Data EnhancementsIn this demonstration, you will see how to: Create a CIRCULARSTRING Shape Create a COMPOUNDCURVE Shape Create a CURVEPOLYGON Shape Create a Shape that is Larger than a Hemisphere Use the FULLGLOBE Shape
  • Storing and Querying Documents CREATE TABLE FileStore AS FileTable WITH (FileTable_Directory = Documents)SELECT [name] As FileName FROM FileStoreWHERE CONTAINS(PROPERTY(file_stream,Title),Bike OR Cycling)SELECT [name] As FileNameFROM FileStoreWHERE CONTAINS(file_stream, NEAR((bicycle, race), 15))
  • Demonstration: Working with DocumentsIn this demonstration, you will see how to: Create a FileTable Use the NEAR Operator
  • Lesson 2: Database Manageability Enhancements• Management Tool Enhancements• Security Enhancements
  • Management Tool Enhancements• Code Snippets• Enhanced Debugging
  • Demonstration: Using SQL Server Management StudioIn this demonstration, you will see how to: Use Code Snippets Debug Transact-SQL Code
  • Security Enhancements• User-Defined Server Roles CREATE SERVER ROLE [AGAdmins] AUTHORIZATION [sa]; GRANT ALTER ANY AVAILABILITY GROUP TO [AGAdmins]; GRANT ALTER ANY ENDPOINT TO [AGAdmins]; GRANT CREATE AVAILABILITY GROUP TO [AGAdmins]; GRANT CREATE ENDPOINT TO [AGAdmins]; ALTER SERVER ROLE [AGAdmins] ADD MEMBER [JohnDoe]; • Contained Databases CREATE DATABASE [MyContainedDB] CONTAINMENT = PARTIAL GO USE [MyContainedDB] CREATE USER [SalesAppUser] WITH PASSWORD = Pa$$w0rd GO
  • Demonstration: Using Security EnhancementsIn this demonstration, you will see how to: Create a Server Role Create a Contained Database
  • Lesson 3: Database Availability Enhancements• Backup and Restore Enhancements• AlwaysOn Availability Groups
  • Backup and Restore Enhancements• Point-In-Time Restore • Page Restore
  • Demonstration: Using Backup and Restore Enhancements In this demonstration, you will see how to:  Perform a Point-In-Time Restore
  • AlwaysOn Availability Groups Node3 Windows Cluster Async Node1 (Primary) Node2 (Read-Only) Listener
  • Demonstration: Using AlwaysOn Availability GroupsIn this demonstration, you will see how to: Verify Cluster and AlwaysOn Configuration Perform a Full Database Backup Create an AlwaysOn Availability Group View Availability Group Configuration Connect to an AlwaysOn Availability Group Use a Readable Secondary Replica Use a Readable Secondary Replica with a Read-Intent Connection Perform a Manual Failover Observe Automatic Failover
  • Module Review• Database Development Enhancements• Database Manageability Enhancements• Database Availability EnhancementsFor more information, attend the following courses:• 10774A: Querying Microsoft® SQL Server® 2012• 10775A: Administering Microsoft® SQL Server® 2012 Databases• 10776A: Developing Microsoft® SQL Server® 2012 Databases• 40008A: Updating your Database Skills to Microsoft® SQL Server® 2012
  • Module 3: EnterpriseIntegration Management and Data Warehousing CTE Ottawa Seminar Day September 7th, 2012
  • Module Overview• SQL Server 2012 Data Quality Services• SQL Server 2012 Master Data Services• SQL Server 2012 Integration Services• SQL Server 2012 for Data Warehousing
  • Lesson 1: SQL Server 2012 Data Quality Services• Overview of SQL Server Data Quality Services• Data Quality Services Knowledge Bases• Data Cleansing• Data Matching
  • Overview of SQL Server Data Quality Services DQS Server• DQS is a knowledge- based solution for: KB  Data Cleansing  Data Matching 1011000110• DQS Components: DQS Client  Server  Client  Data Cleansing SSIS Data Cleansing Transformation Transformation SSIS
  • Data Quality Services Knowledge Bases• Repository of knowledge about data: KB  Domains define values and rules for each field  Matching policies define rules for identifying duplicate records 1011 000110
  • Demonstration: Creating a Knowledge BaseIn this demonstration, you will see how to: Create a Knowledge Base Perform Knowledge Discovery Perform Domain Management
  • Data Cleansing1. Select a knowledge base2. Map columns to domains3. Review suggestions and corrections4. Export results
  • Demonstration: Cleansing DataIn this demonstration, you will see how to: Create a Data Cleansing Project. View Cleansed Data.
  • Data Matching• Matching Policies• Data Matching Projects
  • Demonstration: Matching DataIn this demonstration, you will see how to: Create a Matching Policy. Create a Data Matching Project. View Data Matching Results.
  • Lesson 2: SQL Server 2012 Master Data Services• Overview of SQL Server Master Data Services• Master Data Models• The Master Data Services Add-in for Excel• Implementing a Master Data Hub
  • Overview of SQL Server Master Data Services CRM Customer ID Name Address Phone 1235 Ben Smith 1 High St, Seattle 555 12345  Customer ID Account No Contact No Customer Address Phone Master Data Hub 1235 531 22 Ben Smith 1 High St, Seattle 555 12345 Master Data Services Data Steward Other consumers (e.g. Data Warehouse ETL) Order Processing System Marketing SystemAccount No Customer Address Phone Contact No Name Address Phone531 Benjamin Smith 1 High St, Seattle 555 12345 22 B Smith 5 Main St, Seattle 555 54321
  • Master Data Models• A versioned data model for Customers Model specific business item or area of the business Version 1• Contains definitions for Account Type Entity Member entities required in the Attributes: • • Code: 1 Name: Standard business area • • Code (string) Name (string) Member • Code: 2  Often an entity with the same • Name: Premier name as the model, as well as related entities Customer Entity Member• Each entity has a defined set • Code: 1235 Attributes: of attributes • Code (free-form text) • • Name: Ben Smith Address: 1 High St, Seattle • Name (free-form text) • Phone: 555-12345 • Address (free-form text) • AccountType: 1  All entities have Code and • Phone (free-form text) • CreditLimit: 1000 • AccountType (domain-based) Name attributes • CreditLimit (free-form number) Contact Details Attribute Group  Attributes can be categorized in attribute groups• Each instance of an entity is a Version 2 Version 3 known as a member
  • Demonstration: Creating a Master Data ModelIn this demonstration, you will see how to: Create a Master Data Model Create Entities Create Attributes Add and Edit Members
  • The Master Data Services Add-in for Excel• Use the Master Data Services Add-In for Excel to connect to a model• Create entities• Add columns to create attributes• Edit entity member data in worksheets• Publish changes to Master Data Services
  • Demonstration: Editing a Model in Microsoft ExcelIn this demonstration, you will see how to: View a Master Data Entity in Excel Add a Member Add a Free-Form Attribute Add a Domain-Based Attribute and a Related Entity
  • Implementing a Master Data Hub CRM Master Data Hub Other consumers SSIS (e.g. Data Warehouse ETL) SSIS  SSIS SSIS Order Processing System Data Steward Marketing System• Users insert and update data in application data stores• Application data is loaded into the master data hub via staging tables for consolidation and management by data stewards• Master data flows back to application data stores and other consumers across the enterprise via subscription views
  • Demonstration: Importing and Consuming Master DataIn this demonstration, you will see how to: Use an SSIS Package to Import Data View Import Status Create a Subscription View Query a Subscription View
  • Lesson 3: SQL Server 2012 Integration Services• Overview of SQL Server Integration Services• Extracting Modified Data• Deploying and Managing Integration Services Projects
  • Overview of SQL Server Integration Services• SSIS project:  A versioned container for parameters and packages  A unit of deployment to an SSIS Catalog• SSIS package:  A unit of task flow execution  A unit of deployment (package deployment model) Project Project-level parameter Project-level connection manager Deploy SSIS Catalog Package Package Package-level parameter Package-level parameter Package connection manager Package connection manager Control Flow Package Control Flow Deploy Deployment Data Flow Data Flow Model
  • Extracting Modified Data Initial Extraction Incremental Extraction 1 CDC Control CDC Control 1 Get Processing Range Mark Initial Load Start CDC CDC CDC CDC Source Source State State Data Flow 2 Data Flow Variable Variable 2 CDC Splitter Staged Inserts 3 CDC State Table 3 Staged Staged Staged CDC Control Mark Initial Load End Inserts Updates Deletes 4 CDC Control Mark Processed Range1. A CDC Control Task records the 1. CDC Control Task establishes the range of starting LSN LSNs to be extracted2. A data flow extracts all records 2. A CDC Source extracts records and CDC metadata3. A CDC Control task records the ending LSN 3. Optionally, a CDC Splitter splits the data flow into inserts, updates, and deletes 4. A CDC Control task records the ending LSN
  • Demonstration: Using the CDC Control TaskIn this demonstration, you will see how to: Enable Change Data Capture Perform an Initial Extraction Extract Modified Records
  • Deploying and Managing Integration Services Projects
  • Demonstration: Deploying an Integration Services Project In this demonstration, you will see how to:  Create an SSIS Catalog  Deploy an SSIS Project  Create Environments and Variables  Run an SSIS Package  View Execution Information
  • Lesson 4: SQL Server 2012 for Data Warehousing• Overview of SQL Server Data Warehousing• Options for SQL Server Data Warehousing• Optimizing Performance with Columnstore Indexes
  • Overview of SQL Server Data Warehousing• A centralized store of business data for reporting and analysis• Typically, a data warehouse:  Contains large volumes of historical data  Is optimized for querying data (as opposed to inserting or updating)  Is incrementally loaded with new business data at regular intervals  Provides the basis for enterprise business intelligence solutions
  • Options for SQL Server Data Warehousing Custom-build Reference Data warehouse architectures appliances
  • Optimizing Performance with Columnstore Indexes Row Store Column Store ProductID OrderDate Cost ProductID OrderDate Cost 310 20010701 2171.29 310 20010701 2171.29 311 … 311 20010701 1912.15 1912.15 312 20010702 312 20010702 2171.29 2171.29 313 … 313 20010702 413.14 413.14data 314 …page 333.421000 315 20010703 1295.00 316 … 4233.14 317 … ProductID OrderDate Cost 318 641.22 … 314 20010701 333.42 24.95 319 … 315 20010701 1295.00 320 20010704 64.32 316 20010702 4233.14 321 … 1111.25data 317 20010702 641.22 data data datapage page page page1001 2000 2001 2002
  • Demonstration: Using a Columnstore IndexIn this demonstration, you will see how to: View Logical Reads for a Query Create a Columnstore Index View Performance Improvement
  • Module Review• SQL Server 2012 Data Quality Services• SQL Server 2012 Master Data Services• SQL Server 2012 Integration Services• SQL Server 2012 for Data WarehousingFor more information, attend the following courses:• 10777A: Implementing a Data Warehouse with Microsoft® SQL Server® 2012• 40009A: Updating your Business Intelligence Skills to Microsoft® SQL Server® 2012