SlideShare a Scribd company logo
Premium community conference on Microsoft technologies itcampro@ itcamp14#
SQL Server 2014 for
Developers
Cristian Lefter, SQL Server MVP
http://about.me/CristianLefter
Premium community conference on Microsoft technologies itcampro@ itcamp14#
Huge thanks to our sponsors & partners!
Premium community conference on Microsoft technologies itcampro@ itcamp14#
WHAT’S NEW IN DATABASE ENGINE
SQL Server 2014
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Code name Hekaton
• Memory-optimized Tables
• Natively compiled stored procedures
• It’s all about optimism versus pessimism
• 100x times faster – how?
• It’s a project started in Microsoft Research
• Hekaton Team: Cristian Diaconu
• It also applies to Table-Valued Parameters and
Table Variables
CREATE TYPE
[Sales].[SalesOrderDetailType_inmem] AS TABLE(
[OrderQty] [smallint] NOT NULL,
[ProductID] [int] NOT NULL,
[SpecialOfferID] [int] NOT NULL,
[LocalID] [int] NOT NULL,
INDEX [IX_ProductID] HASH ([ProductID]) WITH
( BUCKET_COUNT = 8),
INDEX [IX_SpecialOfferID] NONCLUSTERED
)
WITH ( MEMORY_OPTIMIZED = ON )
In-memory OLTP
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Not for everyone 
• Optimistic Multi-version Concurrency Control
• Best scenario: highly concurrent workloads using small transactions
In-memory OLTP (cont.)
Premium community conference on Microsoft technologies itcampro@ itcamp14#
In-memory OLTP (cont.)
Workload Pattern Implementation Scenario Benefits
High data insertion rate
from multiple concurrent
connections.
Primarily append-only store.
Unable to keep up with the insert
workload.
Eliminate contention.
Reduce logging.
Read performance and
scale with periodic batch
inserts and updates.
High performance read operations,
especially when each server request has
multiple read operations to perform.
Unable to meet scale-up requirements.
Eliminate contention when new
data arrives.
Lower latency data retrieval.
Minimize code execution time.
Intensive business logic
processing in the
database server.
Insert, update, and delete workload.
Intensive computation inside stored
procedures.
Read and write contention.
Eliminate contention.
Minimize code execution time for
reduced latency and improved
throughput.
Low latency. Require low latency business transactions
which typical database solutions cannot
achieve.
Eliminate contention.
Minimize code execution time.
Low latency code execution.
Efficient data retrieval.
Session state
management.
Frequent insert, update and point
lookups.
High scale load from numerous stateless
web servers.
Eliminate contention. Efficient
data retrieval. Optional IO
reduction or removal, when using
non-durable tables
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Buffer Pool Extension to SSD (Solid State Disks)
• Only “clean” pages are stored to the Buffer Pool
Extension
• Increased random I/O throughput
• Reduced I/O latency
• Increased transaction throughput
• Improved read performance with a larger hybrid buffer
pool
• A caching architecture that can take advantage of
present and future low-cost memory drives
• Supported in Standard and Enterprise editions
• Best scenario: databases larger than available memory
Buffer Pool Extension
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• SELECT … INTO can operate in parallel
• Database compatibility level at least 110.
• Main benefit – performance
SELECT … INTO can run in parallel
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Customize the wait priority of an online operation using the
WAIT_AT_LOW_PRIORITY option
Syntax:
<low_priority_lock_wait>::= {
WAIT_AT_LOW_PRIORITY ( MAX_DURATION = <time> [ MINUTES ] ,
ABORT_AFTER_WAIT = { NONE | SELF |
BLOCKERS } ) }
Example:
ALTER INDEX ALL ON Production.Product REBUILD WITH
(
FILLFACTOR = 80,
SORT_IN_TEMPDB = ON,
STATISTICS_NORECOMPUTE = ON,
ONLINE = ON ( WAIT_AT_LOW_PRIORITY ( MAX_DURATION = 4 MINUTES,
ABORT_AFTER_WAIT = BLOCKERS ) ),
DATA_COMPRESSION = ROW
);
Managing the lock priority of online operations
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• The cardinality estimator is re-designed in SQL Server 2014
• Improve query plans (improved query performance)
Example:
SELECT P.EnglishProductName, F.OrderDate
FROM [dbo].[FactInternetSales_V2] F
JOIN [dbo].[DimProduct] P
ON F.ProductKey = P.ProductKey
(1268358 row(s) affected)
New Design for Cardinality Estimation
SQL Server 2014 SQL Server 2012
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• The individual partitions of partitioned tables can now be rebuilt online.
• Can be used with Managed Lock Priority feature.
• Increases database availability.
Partial Syntax:
ALTER INDEX { index_name | ALL } ON <object> {
REBUILD
[ PARTITION = ALL ]
[ WITH ( <rebuild_index_option> [ ,...n ] ) ]
| [ PARTITION = partition_number
[ WITH ( <single_partition_rebuild_index_option> ) [
,...n ] ] ... } [ ; ]
<single_partition_rebuild_index_option> ::=
{
SORT_IN_TEMPDB = { ON | OFF } | MAXDOP = max_degree_of_parallelism
| DATA_COMPRESSION = { NONE | ROW | PAGE | COLUMNSTORE |
COLUMNSTORE_ARCHIVE} }
| ONLINE = { ON [ ( <low_priority_lock_wait> ) ] | OFF }
}
Partition Switching and Indexing
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Specifying the encryption algorithm and the encryptor (a Certificate or Asymmetric Key)
• All storage destinations: on-premises and Window Azure storage are supported.
• Encryption Algorithm supported: AES 128, AES 192, AES 256, and Triple DES
• Encryptor: A certificate or asymmetric Key
• For restore, the certificate or the asymmetric key used to encrypt the backup file, must be
available on the instance that you are restoring to.
Backup Encryption
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Reduce latency using delayed durable transactions
• Delayed durable transaction means that the control is return to the
client before the transaction log record is written to disk
• Can be controlled at:
– The database level
– The COMMIT level
– The ATOMIC block level
Syntax:
-- at the database level
ALTER DATABASE dbname
SET DELAYED_DURABILITY = DISABLED | ALLOWED | FORCED;
-- at the COMMIT level
COMMIT TRANSACTION WITH (DELAYED_DURABILITY = ON);
-- at the ATOMIC block level
BEGIN ATOMIC WITH (DELAYED_DURABILITY = ON, ...)
Delayed Durability
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Column-based data storage.
• Optimized for bulk loads and read-only queries.
• Up to 10x query performance and up to 7x data
compression.
• SQL Server 2012:
– nonclustered columnstore indexes
– batch mode processing
– nonclustered columnstore indexes result in a read-
only table
• SQL Server 2014
– updatable clustered columnstore indexes
– archival data compression
Updateable Clustered Columnstore Indexes
• In SQL Server, a clustered columnstore index:
– Available in Enterprise, Developer, and Evaluation editions
– Is the primary storage method for the entire table.
– Has no key columns. All columns are included columns.
– Is the only index on the table. It cannot be combined with any other indexes.
– Rebuilding the columnstore index requires an exclusive lock on the table or partition
• Best scenario: application requiring large scans and aggregations
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Statistics can be created at partition level.
• New partition won’t require statistics update for the entire table!
• INCREMENTAL option
• Not supported for:
– Statistics created with indexes that are not partition-aligned with the base table.
– Statistics created on AlwaysOn readable secondary databases.
– Statistics created on read-only databases.
– Statistics created on filtered indexes.
– Statistics created on views.
– Statistics created on internal tables.
– Statistics created with spatial indexes or XML indexes.
Example:
UPDATE STATISTICS MyTable(MyStatistics)
WITH RESAMPLE ON PARTITIONS(3, 4);
Incremental Statistics
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Physical IO Control using
MIN_IOPS_PER_VOLUME and
MAX_IOPS_PER_VOLUME settings for a
resource pool.
• The MAX_OUTSTANDING_IO_PER_VOLUME
option sets the maximum queued I/O
operations per disk volume.
Resource Governor enhancements for physical IO control
Premium community conference on Microsoft technologies itcampro@ itcamp14#
Enhanced Security
Premium community conference on Microsoft technologies itcampro@ itcamp14#
• Allows monitoring queries in real time.
• SET STATISTICS PROFILE ON or SET
STATISTICS XML ON are necessary to serialize the
requests of sys.dm_exec_query_profiles and
return the final results
The sys.dm_exec_query_profiles DMV
Premium community conference on Microsoft technologies itcampro@ itcamp14#
Partial Syntax:
--Disk-Based CREATE TABLE Syntax
CREATE TABLE [ database_name . [ schema_name ] . | schema_name . ]
table_name [ AS FileTable ]
( { <column_definition> | <computed_column_definition>
| <column_set_definition> | [ <table_constraint> ]
| [ <table_index> ] [ ,...n ] } )... [ ; ]
< table_index > ::=
INDEX index_name [ CLUSTERED | NONCLUSTERED ] (column [ ASC | DESC ]
[ ,... n ] )
[ WITH ( <index_option> [ ,... n ] ) ]
[ ON { partition_scheme_name (column_name ) | filegroup_name
| default }]
Example:
CREATE TABLE dbo.MyTable
(
i INT, INDEX idx_MyTable_i NONCLUSTERED(i DESC)
);
Inline specification of CLUSTERED and NONCLUSTERED
Premium community conference on Microsoft technologies itcampro@ itcamp14#
DEMO
SQL Server 2014 - What’s New in Database engine
Premium community conference on Microsoft technologies itcampro@ itcamp14#
Q & A

More Related Content

PPTX
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
PPTX
Understanding DB2 Optimizer
PDF
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
PDF
Enterprise PostgreSQL - EDB's answer to conventional Databases
PPTX
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
PDF
Vertica on Amazon Web Services
PPSX
Solving the DB2 LUW Administration Dilemma
PDF
MySQL Server Settings Tuning
Geek Sync I Need for Speed: In-Memory Databases in Oracle and SQL Server
Understanding DB2 Optimizer
Delivering High Availability and Performance with SQL Server 2014 (Silviu Nic...
Enterprise PostgreSQL - EDB's answer to conventional Databases
SQL Server 2014 New Features (Sql Server 2014 Yenilikleri)
Vertica on Amazon Web Services
Solving the DB2 LUW Administration Dilemma
MySQL Server Settings Tuning

What's hot (20)

PDF
Is There Anything PgBouncer Can’t Do?
 
PPT
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
PDF
DB2 LUW Access Plan Stability
PDF
High Availability Options for DB2 Data Centre
PPTX
SQL Server 2014 Features
PDF
Vertica 7.0 Architecture Overview
PPTX
Windows Server 2012 Deep-Dive - EPC Group
PDF
DbB 10 Webcast #3 The Secrets Of Scalability
PDF
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
PPTX
X-DB Replication Server and MMR
PDF
PostgreSQL and Benchmarks
PDF
Db2 recovery IDUG EMEA 2013
PDF
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
PPTX
Sql Server 2014 In Memory
PDF
Von A bis Z-itrix: Installieren Sie den stabilsten und schnellsten HCL Notes-...
PDF
RNUG - DeepDive Workshop - HCL Notes Client upgrades/deployments using Marvel...
PPTX
Pulse 2011 virtualization and storwize v7000
PDF
12 cool features in defrag 12
PDF
Ibm db2 10.5 for linux, unix, and windows installing ibm data server clients
PPTX
Using SAS GRID v 9 with Isilon F810
Is There Anything PgBouncer Can’t Do?
 
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
DB2 LUW Access Plan Stability
High Availability Options for DB2 Data Centre
SQL Server 2014 Features
Vertica 7.0 Architecture Overview
Windows Server 2012 Deep-Dive - EPC Group
DbB 10 Webcast #3 The Secrets Of Scalability
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
X-DB Replication Server and MMR
PostgreSQL and Benchmarks
Db2 recovery IDUG EMEA 2013
RNUG - Virtual, Faster, Better! How to deploy HCL Notes 11.0.1 FP2 for Citrix...
Sql Server 2014 In Memory
Von A bis Z-itrix: Installieren Sie den stabilsten und schnellsten HCL Notes-...
RNUG - DeepDive Workshop - HCL Notes Client upgrades/deployments using Marvel...
Pulse 2011 virtualization and storwize v7000
12 cool features in defrag 12
Ibm db2 10.5 for linux, unix, and windows installing ibm data server clients
Using SAS GRID v 9 with Isilon F810
Ad

Similar to SQL Server 2014 for Developers (Cristian Lefter) (20)

PPTX
Column store indexes and batch processing mode (nx power lite)
PPT
Performance dreams of sql server 2014
POTX
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
PPTX
SQL Server 2014 – Features Drilldown.pptx
PPTX
SQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
PPTX
Windows azure sql database & your data
PPTX
Hekaton introduction for .Net developers
DOCX
Indexes in ms sql server
PPTX
SQL server 2016 New Features
PPTX
JSSUG: SQL Sever Performance Tuning
PDF
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
PPTX
JSSUG: SQL Sever Index Tuning
PDF
SQL Server 2014 Mission Critical Performance - Level 300 Presentation
PDF
SQL Server database engine 2017 enhancements
PPTX
Sql server 2016 it just runs faster sql bits 2017 edition
PPTX
SQL Server It Just Runs Faster
PDF
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
PPTX
SQL Server In-Memory OLTP Case Studies
PPTX
Novedades SQL Server 2014
PPTX
An introduction to SQL Server in-memory OLTP Engine
Column store indexes and batch processing mode (nx power lite)
Performance dreams of sql server 2014
Business Insight 2014 - Microsofts nye BI og database platform - Erling Skaal...
SQL Server 2014 – Features Drilldown.pptx
SQL Server 2014 Extreme Transaction Processing (Hekaton) - Basics
Windows azure sql database & your data
Hekaton introduction for .Net developers
Indexes in ms sql server
SQL server 2016 New Features
JSSUG: SQL Sever Performance Tuning
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
JSSUG: SQL Sever Index Tuning
SQL Server 2014 Mission Critical Performance - Level 300 Presentation
SQL Server database engine 2017 enhancements
Sql server 2016 it just runs faster sql bits 2017 edition
SQL Server It Just Runs Faster
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQL Server In-Memory OLTP Case Studies
Novedades SQL Server 2014
An introduction to SQL Server in-memory OLTP Engine
Ad

More from ITCamp (20)

PDF
ITCamp 2019 - Stacey M. Jenkins - Protecting your company's data - By psychol...
PDF
ITCamp 2019 - Silviu Niculita - Supercharge your AI efforts with the use of A...
PDF
ITCamp 2019 - Peter Leeson - Managing Skills
PPTX
ITCamp 2019 - Mihai Tataran - Governing your Cloud Resources
PDF
ITCamp 2019 - Ivana Milicic - Color - The Shadow Ruler of UX
PDF
ITCamp 2019 - Florin Coros - Implementing Clean Architecture
PPTX
ITCamp 2019 - Florin Loghiade - Azure Kubernetes in Production - Field notes...
PPTX
ITCamp 2019 - Florin Flestea - How 3rd Level support experience influenced m...
PPTX
ITCamp 2019 - Emil Craciun - RoboRestaurant of the future powered by serverle...
PPTX
ITCamp 2019 - Eldert Grootenboer - Cloud Architecture Recipes for The Enterprise
PPTX
ITCamp 2019 - Cristiana Fernbach - Blockchain Legal Trends
PPTX
ITCamp 2019 - Andy Cross - Machine Learning with ML.NET and Azure Data Lake
PPTX
ITCamp 2019 - Andy Cross - Business Outcomes from AI
PDF
ITCamp 2019 - Andrea Saltarello - Modernise your app. The Cloud Story
PDF
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
PPTX
ITCamp 2019 - Alex Mang - I'm Confused Should I Orchestrate my Containers on ...
PPTX
ITCamp 2019 - Alex Mang - How Far Can Serverless Actually Go Now
PDF
ITCamp 2019 - Peter Leeson - Vitruvian Quality
PDF
ITCamp 2018 - Ciprian Sorlea - Million Dollars Hello World Application
PDF
ITCamp 2018 - Ciprian Sorlea - Enterprise Architectures with TypeScript And F...
ITCamp 2019 - Stacey M. Jenkins - Protecting your company's data - By psychol...
ITCamp 2019 - Silviu Niculita - Supercharge your AI efforts with the use of A...
ITCamp 2019 - Peter Leeson - Managing Skills
ITCamp 2019 - Mihai Tataran - Governing your Cloud Resources
ITCamp 2019 - Ivana Milicic - Color - The Shadow Ruler of UX
ITCamp 2019 - Florin Coros - Implementing Clean Architecture
ITCamp 2019 - Florin Loghiade - Azure Kubernetes in Production - Field notes...
ITCamp 2019 - Florin Flestea - How 3rd Level support experience influenced m...
ITCamp 2019 - Emil Craciun - RoboRestaurant of the future powered by serverle...
ITCamp 2019 - Eldert Grootenboer - Cloud Architecture Recipes for The Enterprise
ITCamp 2019 - Cristiana Fernbach - Blockchain Legal Trends
ITCamp 2019 - Andy Cross - Machine Learning with ML.NET and Azure Data Lake
ITCamp 2019 - Andy Cross - Business Outcomes from AI
ITCamp 2019 - Andrea Saltarello - Modernise your app. The Cloud Story
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
ITCamp 2019 - Alex Mang - I'm Confused Should I Orchestrate my Containers on ...
ITCamp 2019 - Alex Mang - How Far Can Serverless Actually Go Now
ITCamp 2019 - Peter Leeson - Vitruvian Quality
ITCamp 2018 - Ciprian Sorlea - Million Dollars Hello World Application
ITCamp 2018 - Ciprian Sorlea - Enterprise Architectures with TypeScript And F...

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
sap open course for s4hana steps from ECC to s4
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
sap open course for s4hana steps from ECC to s4
NewMind AI Weekly Chronicles - August'25 Week I
Building Integrated photovoltaic BIPV_UPV.pdf
Network Security Unit 5.pdf for BCA BBA.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.

SQL Server 2014 for Developers (Cristian Lefter)

  • 1. Premium community conference on Microsoft technologies itcampro@ itcamp14# SQL Server 2014 for Developers Cristian Lefter, SQL Server MVP http://about.me/CristianLefter
  • 2. Premium community conference on Microsoft technologies itcampro@ itcamp14# Huge thanks to our sponsors & partners!
  • 3. Premium community conference on Microsoft technologies itcampro@ itcamp14# WHAT’S NEW IN DATABASE ENGINE SQL Server 2014
  • 4. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Code name Hekaton • Memory-optimized Tables • Natively compiled stored procedures • It’s all about optimism versus pessimism • 100x times faster – how? • It’s a project started in Microsoft Research • Hekaton Team: Cristian Diaconu • It also applies to Table-Valued Parameters and Table Variables CREATE TYPE [Sales].[SalesOrderDetailType_inmem] AS TABLE( [OrderQty] [smallint] NOT NULL, [ProductID] [int] NOT NULL, [SpecialOfferID] [int] NOT NULL, [LocalID] [int] NOT NULL, INDEX [IX_ProductID] HASH ([ProductID]) WITH ( BUCKET_COUNT = 8), INDEX [IX_SpecialOfferID] NONCLUSTERED ) WITH ( MEMORY_OPTIMIZED = ON ) In-memory OLTP
  • 5. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Not for everyone  • Optimistic Multi-version Concurrency Control • Best scenario: highly concurrent workloads using small transactions In-memory OLTP (cont.)
  • 6. Premium community conference on Microsoft technologies itcampro@ itcamp14# In-memory OLTP (cont.) Workload Pattern Implementation Scenario Benefits High data insertion rate from multiple concurrent connections. Primarily append-only store. Unable to keep up with the insert workload. Eliminate contention. Reduce logging. Read performance and scale with periodic batch inserts and updates. High performance read operations, especially when each server request has multiple read operations to perform. Unable to meet scale-up requirements. Eliminate contention when new data arrives. Lower latency data retrieval. Minimize code execution time. Intensive business logic processing in the database server. Insert, update, and delete workload. Intensive computation inside stored procedures. Read and write contention. Eliminate contention. Minimize code execution time for reduced latency and improved throughput. Low latency. Require low latency business transactions which typical database solutions cannot achieve. Eliminate contention. Minimize code execution time. Low latency code execution. Efficient data retrieval. Session state management. Frequent insert, update and point lookups. High scale load from numerous stateless web servers. Eliminate contention. Efficient data retrieval. Optional IO reduction or removal, when using non-durable tables
  • 7. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Buffer Pool Extension to SSD (Solid State Disks) • Only “clean” pages are stored to the Buffer Pool Extension • Increased random I/O throughput • Reduced I/O latency • Increased transaction throughput • Improved read performance with a larger hybrid buffer pool • A caching architecture that can take advantage of present and future low-cost memory drives • Supported in Standard and Enterprise editions • Best scenario: databases larger than available memory Buffer Pool Extension
  • 8. Premium community conference on Microsoft technologies itcampro@ itcamp14# • SELECT … INTO can operate in parallel • Database compatibility level at least 110. • Main benefit – performance SELECT … INTO can run in parallel
  • 9. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Customize the wait priority of an online operation using the WAIT_AT_LOW_PRIORITY option Syntax: <low_priority_lock_wait>::= { WAIT_AT_LOW_PRIORITY ( MAX_DURATION = <time> [ MINUTES ] , ABORT_AFTER_WAIT = { NONE | SELF | BLOCKERS } ) } Example: ALTER INDEX ALL ON Production.Product REBUILD WITH ( FILLFACTOR = 80, SORT_IN_TEMPDB = ON, STATISTICS_NORECOMPUTE = ON, ONLINE = ON ( WAIT_AT_LOW_PRIORITY ( MAX_DURATION = 4 MINUTES, ABORT_AFTER_WAIT = BLOCKERS ) ), DATA_COMPRESSION = ROW ); Managing the lock priority of online operations
  • 10. Premium community conference on Microsoft technologies itcampro@ itcamp14# • The cardinality estimator is re-designed in SQL Server 2014 • Improve query plans (improved query performance) Example: SELECT P.EnglishProductName, F.OrderDate FROM [dbo].[FactInternetSales_V2] F JOIN [dbo].[DimProduct] P ON F.ProductKey = P.ProductKey (1268358 row(s) affected) New Design for Cardinality Estimation SQL Server 2014 SQL Server 2012
  • 11. Premium community conference on Microsoft technologies itcampro@ itcamp14# • The individual partitions of partitioned tables can now be rebuilt online. • Can be used with Managed Lock Priority feature. • Increases database availability. Partial Syntax: ALTER INDEX { index_name | ALL } ON <object> { REBUILD [ PARTITION = ALL ] [ WITH ( <rebuild_index_option> [ ,...n ] ) ] | [ PARTITION = partition_number [ WITH ( <single_partition_rebuild_index_option> ) [ ,...n ] ] ... } [ ; ] <single_partition_rebuild_index_option> ::= { SORT_IN_TEMPDB = { ON | OFF } | MAXDOP = max_degree_of_parallelism | DATA_COMPRESSION = { NONE | ROW | PAGE | COLUMNSTORE | COLUMNSTORE_ARCHIVE} } | ONLINE = { ON [ ( <low_priority_lock_wait> ) ] | OFF } } Partition Switching and Indexing
  • 12. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Specifying the encryption algorithm and the encryptor (a Certificate or Asymmetric Key) • All storage destinations: on-premises and Window Azure storage are supported. • Encryption Algorithm supported: AES 128, AES 192, AES 256, and Triple DES • Encryptor: A certificate or asymmetric Key • For restore, the certificate or the asymmetric key used to encrypt the backup file, must be available on the instance that you are restoring to. Backup Encryption
  • 13. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Reduce latency using delayed durable transactions • Delayed durable transaction means that the control is return to the client before the transaction log record is written to disk • Can be controlled at: – The database level – The COMMIT level – The ATOMIC block level Syntax: -- at the database level ALTER DATABASE dbname SET DELAYED_DURABILITY = DISABLED | ALLOWED | FORCED; -- at the COMMIT level COMMIT TRANSACTION WITH (DELAYED_DURABILITY = ON); -- at the ATOMIC block level BEGIN ATOMIC WITH (DELAYED_DURABILITY = ON, ...) Delayed Durability
  • 14. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Column-based data storage. • Optimized for bulk loads and read-only queries. • Up to 10x query performance and up to 7x data compression. • SQL Server 2012: – nonclustered columnstore indexes – batch mode processing – nonclustered columnstore indexes result in a read- only table • SQL Server 2014 – updatable clustered columnstore indexes – archival data compression Updateable Clustered Columnstore Indexes • In SQL Server, a clustered columnstore index: – Available in Enterprise, Developer, and Evaluation editions – Is the primary storage method for the entire table. – Has no key columns. All columns are included columns. – Is the only index on the table. It cannot be combined with any other indexes. – Rebuilding the columnstore index requires an exclusive lock on the table or partition • Best scenario: application requiring large scans and aggregations
  • 15. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Statistics can be created at partition level. • New partition won’t require statistics update for the entire table! • INCREMENTAL option • Not supported for: – Statistics created with indexes that are not partition-aligned with the base table. – Statistics created on AlwaysOn readable secondary databases. – Statistics created on read-only databases. – Statistics created on filtered indexes. – Statistics created on views. – Statistics created on internal tables. – Statistics created with spatial indexes or XML indexes. Example: UPDATE STATISTICS MyTable(MyStatistics) WITH RESAMPLE ON PARTITIONS(3, 4); Incremental Statistics
  • 16. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Physical IO Control using MIN_IOPS_PER_VOLUME and MAX_IOPS_PER_VOLUME settings for a resource pool. • The MAX_OUTSTANDING_IO_PER_VOLUME option sets the maximum queued I/O operations per disk volume. Resource Governor enhancements for physical IO control
  • 17. Premium community conference on Microsoft technologies itcampro@ itcamp14# Enhanced Security
  • 18. Premium community conference on Microsoft technologies itcampro@ itcamp14# • Allows monitoring queries in real time. • SET STATISTICS PROFILE ON or SET STATISTICS XML ON are necessary to serialize the requests of sys.dm_exec_query_profiles and return the final results The sys.dm_exec_query_profiles DMV
  • 19. Premium community conference on Microsoft technologies itcampro@ itcamp14# Partial Syntax: --Disk-Based CREATE TABLE Syntax CREATE TABLE [ database_name . [ schema_name ] . | schema_name . ] table_name [ AS FileTable ] ( { <column_definition> | <computed_column_definition> | <column_set_definition> | [ <table_constraint> ] | [ <table_index> ] [ ,...n ] } )... [ ; ] < table_index > ::= INDEX index_name [ CLUSTERED | NONCLUSTERED ] (column [ ASC | DESC ] [ ,... n ] ) [ WITH ( <index_option> [ ,... n ] ) ] [ ON { partition_scheme_name (column_name ) | filegroup_name | default }] Example: CREATE TABLE dbo.MyTable ( i INT, INDEX idx_MyTable_i NONCLUSTERED(i DESC) ); Inline specification of CLUSTERED and NONCLUSTERED
  • 20. Premium community conference on Microsoft technologies itcampro@ itcamp14# DEMO SQL Server 2014 - What’s New in Database engine
  • 21. Premium community conference on Microsoft technologies itcampro@ itcamp14# Q & A