what’s new in microsoft sql server 2012 for administrators & developers

71
What’s New in Microsoft SQL Server 2012 for Administrators & Developers Bryan Smith [email protected]

Upload: abra

Post on 25-Feb-2016

74 views

Category:

Documents


0 download

DESCRIPTION

What’s New in Microsoft SQL Server 2012 for Administrators & Developers. Bryan Smith [email protected]. Online Operation Enhancements. Contained Database Authentication. AlwaysOn. Reliable Secondaries. Multi-site Clustering. SQL Server Express LocalDB. Windows Server Core Support. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

What’s New inMicrosoft SQL Server 2012for Administrators & DevelopersBryan [email protected]

Page 2: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn Reliable SecondariesFileTableColumnStore Index

15k Partitions

SQL Server Data ToolsPower View

BI Semantic ModelData Quality Services

Full-Text Search Performance

Distributed Replay

Reporting Alerts

ODBC Driver for Linux

Statistical Semantic SearchWindows Server Core Support

Multiple Secondaries

Availability GroupsDefault Scheme for Windows Groups

T-SQL Enhancements

Full Globe Spatial

SSMS to Windows Azure Platform

PowerPivot Enhancements

Master Data Management Excel Add-in

PowerShell 2.0 Support

PHP & Java Connectivity

SQL Audit for All Editions

CDC Support for SSISNew SSIS Design Surface

Online Operation EnhancementsMulti-site Clustering

Unstructured Data Performance

Resource Governor Enhancements

Database Recovery Advisor

HA for StreamInsight

Flexible Failover Policy

Extended Events Enhancements

Contained Database Authentication

SharePoint Active Directory Support

SQL Server Express LocalDB

User-defined Audit

Audit Filtering

Audit Resilience

FTS Support for Czech and Greek

AlwaysOn Connection Director

Ad Hoc ReportingSSIS Troubleshooting

SSIS Package Management

T-SQL Debugger Enhancements

Spatial 2D Support

Unstructured Data Performance

Page 3: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Rapid data discoveryManaged self-service BI

Credible, consistent data

Complete DW solutions

Scale on demandFast time to marketExtend any data,

anywhereOptimized productivity

Required 9s & protection

Blazing-fast performance

Organizational compliance

Peace of mind

MISSION CRITICAL CONFIDENCE

CLOUD ON YOUR TERMS

BREAKTHROUGH INSIGHT

Unlock new insights with pervasive data discovery across the

organization

Create business solutions fast, on your terms across server & private or public cloud

Enable mission critical performance & availability at an appropriate TCO

Page 4: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Database Engine

Analysis Services

Integration Services

Master Data Services

Data Quality Services

Reporting Services

StreamInsight

Page 5: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Survey

Developers

Administrators

Page 6: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Objectives• Increased availability• Improved hardware utilization• Simplified administration

Page 7: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: AvailabilityInstance Availability Database Availability

Page 8: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Instance Availability• Enhances Windows Failover Clustering

with:– Enhanced diagnostics– Flexible failover policies– Easier multi-site clustering

Page 9: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Health & Diagnostics

Five Resource Types:• System• Resources• Query Processing• IO Subsystem• Events

Page 10: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Failover PoliciesCondition

Policy Number0 1 2 3 4 5

Windows Service Down • • • • •Cannot Obtain Health • • • •System Reports Error • • •Resource Reports Error • •Query Processing Reports Error •

Page 11: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Multi-Site Clustering• Multi-site clustering supported since 2005

– VLAN required between sites– Storage-level replication separate from SQL Server

• Multi-subnet support with 2012– Storage-level replication still separate from SQL Server

DNS

Site A Site B

Page 12: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Database Availability• Enhances database mirroring with:– Multiple Secondaries– Availability Groups– Virtual Network Name– Readable Secondaries

Page 13: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Availability Groups• Multiple user databases in replicated set• Failover together within topology

Page 14: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Secondaries• 1 primary + up to 4 secondaries– 2 max synchronous secondaries

• Provide failover & automatic page correction• 1 secondary in automatic failover pair

Page 15: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Secondaries

Page 16: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Automated Failover

ConditionPolicy Number1 2 3 4 5

Windows Service Down ORAG Lease Expired • • • • •

Replica in Failed State • • • •System Reports Error • • •Resource Reports Error • •Query Processing Report Error •

Page 17: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Virtual Network Name• Virtual Network Name (VNN) established

with Windows Failover Cluster Services (WFCS)

• Availability Group Listener interacts with WFCS to identify primary Availability Group

• Applications connect to VNN or individual server names

Virtual Network Name

Page 18: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Readability• All secondaries support backups• 2 secondaries can be designated readable• Availability Group Listener can route read-

only workloads to readable secondaries– Routing list prioritizes secondaries– Application must specify

ReadOnly intent

Virtual Network Name

Page 19: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn: Administration

Page 20: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Windows Core Server Support

• Supports:– Database Engine– Analysis Services– Integration Services

Page 21: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Security: Contained DatabasesInstance

User

Login

Instance

User/Login

Useful in scenarios when need to move a database:• AlwaysOn• Application Development• Azure

Page 22: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Security: Contained Databases• Supports Windows & SQL authentication– Windows-only recommended for authentication

security & DoS concerns• Must be enabled at instance-level and

implemented for specific databases• Access to instance-level resources permitted– Database becomes partially contained– Partial containment monitored through

sys.dm_db_uncontained_entities & cdb_uncontained_usage event

Page 23: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Security: Contained Databases• Increased potential attack surface– db_owner, db_securityadmin, or users with

ALTER ANY USER permissions can grant access without knowledge of instance admins

• Drives security administration to multiple levels– DB-level logins can access other databases

through guest or corresponding logins or user-accounts

Page 24: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Security• BUILTIN\Admins & LocalSystem• Managed service accounts & virtual

accounts• Custom server roles

Page 25: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Security: Audit Improvements• Server-level audit available in every

edition– Database-level audit in Enterprise &

Developer only• Fail operation options for log failures• More information in audit logs• Audits can be defined with filters• sp_audit_write proc for custom audit

Page 26: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Resource Governor Enhancements

• Support for 64 resource pools• Hard caps for CPU usage– CPU does not wait for contention

• Resource pools can be assigned affinity for specific schedulers or NUMA nodes

Page 27: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Performance Improvements

• Full-text search– Fully integrated with database engine– Improved query optimization & parallelism– Versioning to improve concurrent reads &

writes• Spatial indexes– Numerous improvements to indexes– Helper procs for easier index tuning– Support for row and page-level compression– Query plan optimizations

Page 28: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Performance Improvements• Expanded online operations– Add a non-nullable column with a

default– Index rebuilds support BLOBs

• Support for 15k partitions– Back ported to SQL Server 2008 & 2008

R2• Columnstore indexes!

Page 29: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Header

Offset Array

16

2 3 4 57 8

16

2 3 4 57 8

16

2 3 4 57 8

16

2 3 4 57 8

Columnar Storage1111111111111

2222222222222

3333333333333

4444444444444

5555555555555

6666666666666

7777777777777

8888888888888

Page 30: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Columnstore Index Execution Plan

With Columnstore Index

Without Columnstore Index

Page 31: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Columnstore Index Scan• Scans required index columns• Optimized for batch retrieval

– Retrieves ~1,000 rows per batch– Batches proceed to subsequent filtering

Page 32: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Batch Hash Table Build & Hash Match• Multiple filtering values organized as hash table• Hash table applied to index scan batches

&

Page 33: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Memory Consumption

With Columnstore Index

Without Columnstore Index

Page 34: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

New T-SQL Functions• String Conversion• Date & Time• Logical• Analytical

Page 35: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

String Conversion Functions• PARSE• FORMAT• CONCAT

• TRY_CONVERT• TRY_PARSE

Page 36: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Date & Time Functions• DATEFROMPARTS • DATETIME2FROMPARTS • DATETIMEFROMPARTS• DATETIMEOFFSETFROMPARTS

• SMALLDATETIMEFROMPARTS• TIMEFROMPARTS• EOMONTH

Page 37: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Logical Functions• CHOOSE• IIF

Page 38: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Analytical Functions• CUME_DIST• PERCENT_RANK• PERCENTILE_CONT• PERCENTILE_DISC

• FIRST_VALUE• LAST_VALUE• LEAD• LAG

Page 39: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Programmability Enhancements• Pagination in ORDER BY clause

Page 40: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Programmability Enhancements• Windowed operations in OVER clause– Enable moving averages, running totals,

etc.

Page 41: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Programmability Enhancements• THROW statement• FORCESEEK & FORCESCAN table hints– Back ported to SQL Server 2008 R2

Page 42: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Sequence Objects• Defined using:

– TinyInt: 0 to 255– SmallInt: -32,768 to 32,767– Int: -2,147,483,648 to 2,147,483,647– BigInt: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807– Decimal: - 99,999,999,999,999,999,999,999,999,999,999,999,999 to

99,999,999,999,999,999,999,999,999,999,999,999,999 using decimal(38,0)• Bound by start, increment, min & max values• Cycle options for when range is exceeded• Created outside scope of current transaction

– Values consumed upon request• Caching available for performance

– Cache lost with system failure– Default cache of 50

• Retrieved using NEXT VALUE FOR or sp_sequence_get_range

Page 43: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

FileTable Objects

Page 44: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Semantic Search

Page 45: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

SQL Server Data Tools

Page 46: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

SQL Server Data Tools

Page 47: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Data Providers

SQL Server/SQL AzureNon-WindowsWindows/Windows Azure

.NET(ADO.NET)

Native(ODBC)

PHP(SQLPHP)

Java(JDBC)

Java(JDBC)

Native(ODBC)

Page 48: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Distributed Replay Utility• Employs standard replay trace from

2005+• Up to 16 replay clients + 1 controller• Executes in synchronization or stress

mode

Page 49: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Upgrade Advisor

Page 50: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

System Center Advisor

Page 51: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

SQL Server Appliances• Workload optimized solutions–MPP & SMP Data Warehouse– All-in-One Business Intelligence– Database Consolidation/Private Cloud– High-Performance OLTP

• Fastest time to deployment• End-to-end support

Page 52: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Database Engine

Analysis Services

Integration Services

Master Data Services

Data Quality Services

Reporting Services

StreamInsight

Page 53: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

StreamInsight

MSFT CEP Engine

Reference data

ApplicationEvent Sources

Devices, Sensors

Event stores & Databases

Stock tickers & News feeds

Event Targets

Pagers & Monitoring

devices

KPI Dashboards, SharePoint UI

Trading stations

Output Adapters

Input Adapters

Microsoft SQL Server 2012 for embedded systems

Page 54: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Database Engine

Analysis Services

Integration Services

Master Data Services

Data Quality Services

Reporting Services

StreamInsight

Page 55: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Enterprise Information ManagementM

ARKETPLACE

External Data and Services

RELATIONAL MULTIDIMENSIONAL

Collaboration Mobile

DECISIONS & ACTION

Workflow

INSIGHT

Social

OPERATIONAL

AD-HOC

MODELING

PREDICTIVE

EXPLORATION

SHARING

NON RELATIONAL STREAMING

100111

DATA MANAGEMENT SUBSTRATEFEDERATED STORAGE & QUERY

Real-timeEmbedded

SHAREDISCOVER TRANSFORM

RECOMMEND CLEAN GOVERN

INFORMATION MANAGEMENT

Page 56: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Data Quality Services

Page 57: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Master Data Services

Page 58: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Integration Services

Page 59: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Project Codename Barcelona

Page 60: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Database Engine

Analysis Services

Integration Services

Master Data Services

Data Quality Services

Reporting Services

StreamInsight

Page 61: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

AlwaysOn Reliable SecondariesFileTableColumnStore Index

15k Partitions

SQL Server Data ToolsPower View

BI Semantic ModelData Quality Services

Full-Text Search Performance

Distributed Replay

Reporting Alerts

ODBC Driver for Linux

Statistical Semantic SearchWindows Server Core Support

Multiple Secondaries

Availability GroupsDefault Scheme for Windows Groups

T-SQL Enhancements

Full Globe Spatial

SSMS to Windows Azure Platform

PowerPivot Enhancements

Master Data Management Excel Add-in

PowerShell 2.0 Support

PHP & Java Connectivity

SQL Audit for All Editions

CDC Support for SSISNew SSIS Design Surface

Online Operation EnhancementsMulti-site Clustering

Unstructured Data Performance

Resource Governor Enhancements

Database Recovery Advisor

HA for StreamInsight

Flexible Failover Policy

Extended Events Enhancements

Contained Database Authentication

SharePoint Active Directory Support

SQL Server Express LocalDB

User-defined Audit

Audit Filtering

Audit Resilience

FTS Support for Czech and Greek

AlwaysOn Connection Director

Ad Hoc ReportingSSIS Troubleshooting

SSIS Package Management

T-SQL Debugger Enhancements

Spatial 2D Support

Unstructured Data Performance

Page 64: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Certifications• Microsoft Certified Technical Specialist (MCTS)• Microsoft Certified IT Professional (MCITP)

– Data Platform• 70-465: Designing Database Solutions with Microsoft SQL Server 2012• 70-464: Developing Microsoft SQL Server 2012 Databases• 70-463: Implementing Data Warehouses with Microsoft SQL Server 2012• 70-462: Administering a Microsoft SQL Server 2012 Database• 70-461: Querying Microsoft SQL Server

– Business Intelligence• 70-467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012• 70-466: Implementing Data Models & Reports with Microsoft SQL Server 2012• 70-463: Implementing Data Warehouses with Microsoft SQL Server 2012• 40-462: Administering a Microsoft SQL Server 2012 Database• 70-461: Querying Microsoft SQL Server

• Microsoft Certified Master– Data Platform– Business Intelligence

Page 65: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers

Community Events• SQL Saturday #107 – Houston, TX• PASS SQL Rally – Dallas, TX• Microsoft TechEd – Orlando, FL• SQL Saturday #125 – Oklahoma City, OK• PASS Summit – Seattle, WA

Page 66: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers
Page 68: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers
Page 69: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers
Page 70: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers
Page 71: What’s New in Microsoft SQL Server 2012 for  Administrators  &  Developers