SlideShare a Scribd company logo
bobward@microsoft.com
https://blogs.msdn.microsoft.com/sql_server_team
SQL Server
Engine
286 System
Catalog Views
232 Dynamic
Management
Views
(Functions)
~1300
Extended
Events
2100
Performance
Monitor
Counters
Extensive
SHOWPLAN
statistics and
warnings
ERRORLOG,
Event Log,
System Health
Session
backup_restore_progress_trace event
“database recovery progress” events
dm_exec_input_buffer
ALTER
DATABASE SCOPED
CONFIGRUATION
list
columnstore
In-Memory
OLTP
Always
Encrypted
Feature
RTM SP1
Standard Web Express Standard Web Express
Row-level security Yes No No Yes Yes Yes
Dynamic Data Masking Yes No No Yes Yes Yes
Change data capture* No No No Yes Yes No*
Database snapshot No No No Yes Yes Yes
Columnstore No No No Yes Yes Yes
Partitioning No No No Yes Yes Yes
Compression No No No Yes Yes Yes
In Memory OLTP No No No Yes Yes Yes
Always Encrypted No No No Yes Yes Yes
PolyBase No No No Yes Yes Yes
Fine grained auditing No No No Yes Yes Yes
Multiple filestream containers No No No Yes Yes Yes
* Requires SQL Server Agent which is not part of SQL Server Express Editions.
SQL Server 2016 SP1 Edition Max Buffer pool size per instance In-Memory OLTP quota (per DB)
Express 1410MB 352MB
Web 64GB 16GB
Standard 128GB 32GB
Developer Unlimited (OS Max of 24TB) Unlimited (OS Max of 24TB)
Enterprise Unlimited (OS Max of 24 TB) Unlimited (OS Max of 24TB)
SQL Server 2016 SP1
Edition
Columnstore memory limit (per
instance)
MAXDOP
Aggregate
pushdown
Filter
pushdown
SIMD support
Express 256MB 1 N N N
Web 16GB 1 N N N
Standard 32GB 2 N N N
Developer Unlimited (OS Max of 24TB) Unlimited Y Y Y
Enterprise Unlimited (OS Max of 24TB) Unlimited Y Y Y
In-Memory OLTP
Columnstore
Understanding the Memory limits for non-EE
editions of SQL Server
Edition limits only impact
buffer pool memory
Advanced R integration and Standalone R Server
Polybase head node
Master Data Services and Data Quality Services
Resource Governor and IO Resource Governor
Partition Table Parallelism
Full NUMA capabilities
Star join query optimizations
Parallel query processing on partitioned tables and indexes
Scalability and Performance in Enterprise Edition
Global batch aggregation
Distributed partitioned views
Online index operations
Auto use of indexed views
Parallel CHECKDB
Advanced scanning for disk-based tables
I found the query with
the problem, now
what do I do?
I have “runaway”
queries
Why isn’t this seek
working?
Regular Query
Profiling
Full runtime statistics for a query plan
Most expensive overhead
Can be enabled per session or global
Consume data from live queries or post
execution
Lightweight Query
Profiling
Limited runtime statistics in query plan
Least expensive overhead
Only enabled globally only
Consume data from live queries or post
execution
We optimized this even further in SQL Server
2016 SP1
SET “option” output
XEvent
• query_post_execution_showplan
• query_thread_profile
DMVs
• dm_exec_query_profiles
• dm_exec_query_statistics_xml
SSMS
• Include Actual Plan
• Include Live Statistics
• Activity Monitor
XEvent
• query_thread_profile
DMVs
• dm_exec_query_profiles
• dm_exec_query_statistics_xml
SSMS
• Activity Monitor
• Include Live Statistics (through AM)
• SET STATISTICS XML (or Include
Actual Plan) still uses regular
query profiling
• query_post_execution_showplan
still uses regular query profiling
• query_thread_profile event is
Debug Channel and does not
include query plan
Overhead percent (up to)
Infra Type
no active
xEvents
Active xEvent
query_post_execution_showplan
Regular (Legacy) 75.5 93.17
Lightweight in SQL Server 2014
SP2/2016
3.5 62.02
Lightweight in SQL Server 2016 SP1 2 14.3
• Information about parameters data type
• CPU and execution elapsed time for entire query (root node)
• Top waits (using sys.dm_exec_session_wait_stats)
• Per operator performance
statistics for node and
threads
• Showplan extended to
include
RunTimeCountersPerThread
• Node costs for parent and
children:
• Cumulative values for Row mode operators
• Singleton values for Batch mode operators
Detailed runtime stats we now provide
Runtime Info Up to SQL 2016 SQL 2016 / SQL 2014 SP2 SQL 2016 SP1
ActualRows X X X
ActualRowsRead X X
Batches X X
ActualEndOfScans X X X
ActualExecutions X X X
ActualExecutionMode X X
ActualElapsedms X X
ActualCPUms X X
ActualScans X X
ActualLogicalReads X X
ActualPhysicalReads X X
ActualReadAheads X X
ActualLobLogicalReads X X
ActualLobPhysicalReads X X
ActualLobReadAheads X X
InputMemoryGrant X
OutputMemoryGrant X
UsedMemoryGrant X
Searching with pushdown
SELECT [ProductID]
FROM [Sales].[SalesOrderDetail]
WHERE [ModifiedDate] BETWEEN '2011-01-01' AND '2012-01-01'
AND [OrderQty] >= 10
ModifiedDate ProductID StoreID OrderQty SalesAmount
2010-12-31 106 01 12 30
2011-01-07 103 04 1 17
2011-01-07 109 04 7 20
2011-02-12 103 03 5 40
2011-03-08 106 05 7 25
2011-04-16 106 02 10 40
2011-07-20 102 02 12 50
2011-10-21 106 03 16 55
2011-12-15 103 03 20 55
(…) (…) (…) (…) (…)
2012-01-01 109 01 11 16
2012-01-11 102 05 5 10
Sales.SalesOrderDetail
ModifiedDate ProductID StoreID OrderQty SalesAmount
2010-12-31 106 01 12 30
2011-01-07 103 04 1 17
2011-01-07 109 04 7 20
2011-02-12 103 03 5 40
2011-03-08 106 05 7 25
2011-04-16 106 02 10 40
2011-07-20 102 02 12 50
2011-10-21 106 03 16 55
2011-12-15 103 03 20 55
(…) (…) (…) (…) (…)
2012-01-01 109 01 11 16
2012-01-11 102 05 5 10
ModifiedDate ProductID StoreID OrderQty SalesAmount
2011-04-16 106 02 10 40
2011-07-20 102 02 12 50
2011-10-21 106 03 16 55
2011-12-15 103 03 20 55
(…) (…) (…) (…) (…)
2012-01-01 109 01 11 16
Result Set
Actual
Rows
• In SQL Server 2016, 2014 SP2
and 2012 SP3
• New Showplan attribute
ActualRowsRead:
• This attribute provides information about how many
rows were read by the operator before the residual
predicate was applied.
• You get this information from Actual Execution Plan.
• sys.dm_exec_query_profiles DMV exposes new
column actual_read_row_count.
Predicate Pushdown in Showplan
• In SQL Server 2016 SP1
• New Showplan attribute
EstimatedRowsRead:
• This attribute provides information about how
many rows are estimated to be read by the
operator before the residual predicate is applied.
• You get this information from Estimated Execution
Plan.
• sys.dm_exec_query_profiles DMV exposes new
column estimated_read_row_count.
Predicate Pushdown in Showplan
SELECT AddressID
FROM Person.[Address]
WHERE City = N'Ballard'
AND [PostalCode] = '98107'
OPTION (QUERYTRACEON 9481)
SELECT AddressID
FROM Person.[Address]
WHERE City = N'Ballard'
AND [PostalCode] = '98107'
OPTION (USE HINT('FORCE_LEGACY_CARDINALITY_ESTIMATION'))
USE HINT TF DB Option
DISABLE_OPTIMIZED_NESTED_LOOP 2340
FORCE_LEGACY_CARDINALITY_ESTIMATION 9481 Yes
ENABLE_QUERY_OPTIMIZER_HOTFIXES 4199 Yes
DISABLE_PARAMETER_SNIFFING 4136 Yes
ASSUME_MIN_SELECTIVITY_FOR_FILTER_ESTIMATES
4137 for OldCE
9471 for NewCE
DISABLE_OPTIMIZER_ROWGOAL 4138
ENABLE_HIST_AMENDMENT_FOR_ASC_KEYS 4139
ASSUME_JOIN_PREDICATE_DEPENDS_ON_FILTERS 9476 on NewCE
FORCE_DEFAULT_CARDINALITY_ESTIMATION 2312
•KB 3190548CREATE OR ALTER statement
•KB 3191273 and 3191273Self-Referential Integrity operator
•KB 3170114dm_db_incremental_stats_properties
•3191296Track TLS protocol with trace xEvent
Database Number of Objects SSMS sp_clonedatabase DBCC CLONEDATABASE
Large Bank DB 20453 Scripting error 378 seconds* 33 seconds (11x)
Internal MS DB 80819 OOM 1200 seconds* 24 seconds (50x)
ERP DB 1008002 OOM 7200 seconds* 122 seconds (60x)
3177838
Blog post on
security
Blog post on
columnstore
Not for
production
1 = Conventional Memory Model
2 = Lock Pages in Memory
3 = Large Pages in Memory
here
recovery_unit_harden_log_timestamps
log_block_pushed_to_logpool
hadr_logblock_compression
hadr_log_block_decompression
hadr_transport_receive_log_block_message
hadr_log_block_group_commit
hadr_capture_filestream_wait
hadr_lsn_send_complete
hadr_receive_harden_lsn_message
KB
3173156
KB
3170123
KB
3173157
Query Store Memory Leak
AV for spatial query exec or XML plan
Tempdb sysobjvalues latch increase
In-Memory OLTP checkpoint files
Adaptive QP
Automatic Query
Plan Tuning
Ensuring our
Diagnostics on
Linux are best in
class
New Query Store
Reports in SSMS
v17.0
SQL Server Tiger Team Blog
Tiger Toolbox GitHub
SQL Server Release Blog
BP Check
SQL Server Standards Support
Trace Flags
SQL Server Support lifecycle
SQL Server Updates
Twitter
Enhancements that will make your sql database roar sp1 edition sql bits 2017

More Related Content

What's hot

Inside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTPInside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTP
Bob Ward
 
Experience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformExperience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data Platform
Bob Ward
 
Inside sql server in memory oltp sql sat nyc 2017
Inside sql server in memory oltp sql sat nyc 2017Inside sql server in memory oltp sql sat nyc 2017
Inside sql server in memory oltp sql sat nyc 2017
Bob Ward
 
Brk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBrk2051 sql server on linux and docker
Brk2051 sql server on linux and docker
Bob Ward
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
MSDEVMTL
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
John Martin
 
Connecting Hadoop and Oracle
Connecting Hadoop and OracleConnecting Hadoop and Oracle
Connecting Hadoop and Oracle
Tanel Poder
 
SQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite ThingsSQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite Things
Hostway|HOSTING
 
Microsoft SQL Server 2016 - Everything Built In
Microsoft SQL Server 2016 - Everything Built InMicrosoft SQL Server 2016 - Everything Built In
Microsoft SQL Server 2016 - Everything Built In
David J Rosenthal
 
SQL Server 2016 Editions
SQL Server 2016 Editions SQL Server 2016 Editions
SQL Server 2016 Editions
Onomi
 
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
ITCamp
 
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQLCompressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Arseny Chernov
 
Snowflake SnowPro Certification Exam Cheat Sheet
Snowflake SnowPro Certification Exam Cheat SheetSnowflake SnowPro Certification Exam Cheat Sheet
Snowflake SnowPro Certification Exam Cheat Sheet
Jeno Yamma
 
Diving into sql server 2016
Diving into sql server 2016Diving into sql server 2016
Diving into sql server 2016
Mohamed Zaatar - MSc
 
Four Ways to Improve ASP .NET Performance and Scalability
 Four Ways to Improve ASP .NET Performance and Scalability Four Ways to Improve ASP .NET Performance and Scalability
Four Ways to Improve ASP .NET Performance and Scalability
Alachisoft
 
Sql server 2016 new features
Sql server 2016 new featuresSql server 2016 new features
Sql server 2016 new features
Ajeet Singh
 
SQLIO - measuring storage performance
SQLIO - measuring storage performanceSQLIO - measuring storage performance
SQLIO - measuring storage performance
valerian_ceaus
 
Azure DocumentDB 101
Azure DocumentDB 101Azure DocumentDB 101
Azure DocumentDB 101
Ike Ellis
 
What's New in Amazon Aurora
What's New in Amazon AuroraWhat's New in Amazon Aurora
What's New in Amazon Aurora
Amazon Web Services
 

What's hot (20)

Inside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTPInside SQL Server In-Memory OLTP
Inside SQL Server In-Memory OLTP
 
Experience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data PlatformExperience SQL Server 2017: The Modern Data Platform
Experience SQL Server 2017: The Modern Data Platform
 
Inside sql server in memory oltp sql sat nyc 2017
Inside sql server in memory oltp sql sat nyc 2017Inside sql server in memory oltp sql sat nyc 2017
Inside sql server in memory oltp sql sat nyc 2017
 
Brk2051 sql server on linux and docker
Brk2051 sql server on linux and dockerBrk2051 sql server on linux and docker
Brk2051 sql server on linux and docker
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
 
SQL Server 2016 novelties
SQL Server 2016 noveltiesSQL Server 2016 novelties
SQL Server 2016 novelties
 
SQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and EnhancementsSQL Server 2016 New Features and Enhancements
SQL Server 2016 New Features and Enhancements
 
Connecting Hadoop and Oracle
Connecting Hadoop and OracleConnecting Hadoop and Oracle
Connecting Hadoop and Oracle
 
SQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite ThingsSQL Server 2016: Just a Few of Our DBA's Favorite Things
SQL Server 2016: Just a Few of Our DBA's Favorite Things
 
Microsoft SQL Server 2016 - Everything Built In
Microsoft SQL Server 2016 - Everything Built InMicrosoft SQL Server 2016 - Everything Built In
Microsoft SQL Server 2016 - Everything Built In
 
SQL Server 2016 Editions
SQL Server 2016 Editions SQL Server 2016 Editions
SQL Server 2016 Editions
 
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
Real Time Operational Analytics with Microsoft Sql Server 2016 [Liviu Ieran]
 
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQLCompressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
Compressed Introduction to Hadoop, SQL-on-Hadoop and NoSQL
 
Snowflake SnowPro Certification Exam Cheat Sheet
Snowflake SnowPro Certification Exam Cheat SheetSnowflake SnowPro Certification Exam Cheat Sheet
Snowflake SnowPro Certification Exam Cheat Sheet
 
Diving into sql server 2016
Diving into sql server 2016Diving into sql server 2016
Diving into sql server 2016
 
Four Ways to Improve ASP .NET Performance and Scalability
 Four Ways to Improve ASP .NET Performance and Scalability Four Ways to Improve ASP .NET Performance and Scalability
Four Ways to Improve ASP .NET Performance and Scalability
 
Sql server 2016 new features
Sql server 2016 new featuresSql server 2016 new features
Sql server 2016 new features
 
SQLIO - measuring storage performance
SQLIO - measuring storage performanceSQLIO - measuring storage performance
SQLIO - measuring storage performance
 
Azure DocumentDB 101
Azure DocumentDB 101Azure DocumentDB 101
Azure DocumentDB 101
 
What's New in Amazon Aurora
What's New in Amazon AuroraWhat's New in Amazon Aurora
What's New in Amazon Aurora
 

Similar to Enhancements that will make your sql database roar sp1 edition sql bits 2017

2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
Jürgen Ambrosi
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
Alex Zaballa
 
SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5
Gianluca Hotz
 
SQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cSQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19c
RachelBarker26
 
Oracle to Azure PostgreSQL database migration webinar
Oracle to Azure PostgreSQL database migration webinarOracle to Azure PostgreSQL database migration webinar
Oracle to Azure PostgreSQL database migration webinar
Minnie Seungmin Cho
 
Sherlock holmes for dba’s
Sherlock holmes for dba’sSherlock holmes for dba’s
Sherlock holmes for dba’s
Kellyn Pot'Vin-Gorman
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
James Serra
 
AnalysisServices
AnalysisServicesAnalysisServices
AnalysisServiceswebuploader
 
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Nelson Calero
 
Modernizing SQL Server the Right Way
Modernizing SQL Server the Right WayModernizing SQL Server the Right Way
Modernizing SQL Server the Right Way
Juan Fabian
 
SQL Server 2008 Integration Services
SQL Server 2008 Integration ServicesSQL Server 2008 Integration Services
SQL Server 2008 Integration Services
Eduardo Castro
 
Expert summit SQL Server 2016
Expert summit   SQL Server 2016Expert summit   SQL Server 2016
Expert summit SQL Server 2016
Łukasz Grala
 
Self-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Self-serve analytics journey at Celtra: Snowflake, Spark, and DatabricksSelf-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Self-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Grega Kespret
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012
Eduardo Castro
 
Web Cloud Computing SQL Server - Ferrara University
Web Cloud Computing SQL Server  -  Ferrara UniversityWeb Cloud Computing SQL Server  -  Ferrara University
Web Cloud Computing SQL Server - Ferrara University
antimo musone
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016
Antonios Chatzipavlis
 
Cepta The Future of Data with Power BI
Cepta The Future of Data with Power BICepta The Future of Data with Power BI
Cepta The Future of Data with Power BI
Kellyn Pot'Vin-Gorman
 
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cPresentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Ronald Francisco Vargas Quesada
 
SQL Server End Of Support
SQL Server End Of SupportSQL Server End Of Support
SQL Server End Of Support
Mariano Kovo
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
Alex Zaballa
 

Similar to Enhancements that will make your sql database roar sp1 edition sql bits 2017 (20)

2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
 
SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5SQL Server 2019 CTP 2.5
SQL Server 2019 CTP 2.5
 
SQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19cSQL Performance Tuning and New Features in Oracle 19c
SQL Performance Tuning and New Features in Oracle 19c
 
Oracle to Azure PostgreSQL database migration webinar
Oracle to Azure PostgreSQL database migration webinarOracle to Azure PostgreSQL database migration webinar
Oracle to Azure PostgreSQL database migration webinar
 
Sherlock holmes for dba’s
Sherlock holmes for dba’sSherlock holmes for dba’s
Sherlock holmes for dba’s
 
What's new in SQL Server 2016
What's new in SQL Server 2016What's new in SQL Server 2016
What's new in SQL Server 2016
 
AnalysisServices
AnalysisServicesAnalysisServices
AnalysisServices
 
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
Evolution of Performance Management: Oracle 12c adaptive optimizations - ukou...
 
Modernizing SQL Server the Right Way
Modernizing SQL Server the Right WayModernizing SQL Server the Right Way
Modernizing SQL Server the Right Way
 
SQL Server 2008 Integration Services
SQL Server 2008 Integration ServicesSQL Server 2008 Integration Services
SQL Server 2008 Integration Services
 
Expert summit SQL Server 2016
Expert summit   SQL Server 2016Expert summit   SQL Server 2016
Expert summit SQL Server 2016
 
Self-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Self-serve analytics journey at Celtra: Snowflake, Spark, and DatabricksSelf-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
Self-serve analytics journey at Celtra: Snowflake, Spark, and Databricks
 
TSQL in SQL Server 2012
TSQL in SQL Server 2012TSQL in SQL Server 2012
TSQL in SQL Server 2012
 
Web Cloud Computing SQL Server - Ferrara University
Web Cloud Computing SQL Server  -  Ferrara UniversityWeb Cloud Computing SQL Server  -  Ferrara University
Web Cloud Computing SQL Server - Ferrara University
 
Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016Live Query Statistics & Query Store in SQL Server 2016
Live Query Statistics & Query Store in SQL Server 2016
 
Cepta The Future of Data with Power BI
Cepta The Future of Data with Power BICepta The Future of Data with Power BI
Cepta The Future of Data with Power BI
 
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cPresentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
 
SQL Server End Of Support
SQL Server End Of SupportSQL Server End Of Support
SQL Server End Of Support
 
Oracle SQL Tuning
Oracle SQL TuningOracle SQL Tuning
Oracle SQL Tuning
 

Recently uploaded

Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 

Recently uploaded (20)

Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 

Enhancements that will make your sql database roar sp1 edition sql bits 2017

  • 2.
  • 3.
  • 4. SQL Server Engine 286 System Catalog Views 232 Dynamic Management Views (Functions) ~1300 Extended Events 2100 Performance Monitor Counters Extensive SHOWPLAN statistics and warnings ERRORLOG, Event Log, System Health Session
  • 5. backup_restore_progress_trace event “database recovery progress” events dm_exec_input_buffer ALTER DATABASE SCOPED CONFIGRUATION list
  • 6.
  • 7.
  • 9. Feature RTM SP1 Standard Web Express Standard Web Express Row-level security Yes No No Yes Yes Yes Dynamic Data Masking Yes No No Yes Yes Yes Change data capture* No No No Yes Yes No* Database snapshot No No No Yes Yes Yes Columnstore No No No Yes Yes Yes Partitioning No No No Yes Yes Yes Compression No No No Yes Yes Yes In Memory OLTP No No No Yes Yes Yes Always Encrypted No No No Yes Yes Yes PolyBase No No No Yes Yes Yes Fine grained auditing No No No Yes Yes Yes Multiple filestream containers No No No Yes Yes Yes * Requires SQL Server Agent which is not part of SQL Server Express Editions.
  • 10. SQL Server 2016 SP1 Edition Max Buffer pool size per instance In-Memory OLTP quota (per DB) Express 1410MB 352MB Web 64GB 16GB Standard 128GB 32GB Developer Unlimited (OS Max of 24TB) Unlimited (OS Max of 24TB) Enterprise Unlimited (OS Max of 24 TB) Unlimited (OS Max of 24TB) SQL Server 2016 SP1 Edition Columnstore memory limit (per instance) MAXDOP Aggregate pushdown Filter pushdown SIMD support Express 256MB 1 N N N Web 16GB 1 N N N Standard 32GB 2 N N N Developer Unlimited (OS Max of 24TB) Unlimited Y Y Y Enterprise Unlimited (OS Max of 24TB) Unlimited Y Y Y In-Memory OLTP Columnstore
  • 11. Understanding the Memory limits for non-EE editions of SQL Server Edition limits only impact buffer pool memory
  • 12. Advanced R integration and Standalone R Server Polybase head node Master Data Services and Data Quality Services Resource Governor and IO Resource Governor Partition Table Parallelism Full NUMA capabilities Star join query optimizations Parallel query processing on partitioned tables and indexes Scalability and Performance in Enterprise Edition Global batch aggregation Distributed partitioned views Online index operations Auto use of indexed views Parallel CHECKDB Advanced scanning for disk-based tables
  • 13. I found the query with the problem, now what do I do? I have “runaway” queries Why isn’t this seek working?
  • 14.
  • 15. Regular Query Profiling Full runtime statistics for a query plan Most expensive overhead Can be enabled per session or global Consume data from live queries or post execution Lightweight Query Profiling Limited runtime statistics in query plan Least expensive overhead Only enabled globally only Consume data from live queries or post execution We optimized this even further in SQL Server 2016 SP1
  • 16. SET “option” output XEvent • query_post_execution_showplan • query_thread_profile DMVs • dm_exec_query_profiles • dm_exec_query_statistics_xml SSMS • Include Actual Plan • Include Live Statistics • Activity Monitor
  • 17. XEvent • query_thread_profile DMVs • dm_exec_query_profiles • dm_exec_query_statistics_xml SSMS • Activity Monitor • Include Live Statistics (through AM) • SET STATISTICS XML (or Include Actual Plan) still uses regular query profiling • query_post_execution_showplan still uses regular query profiling • query_thread_profile event is Debug Channel and does not include query plan
  • 18. Overhead percent (up to) Infra Type no active xEvents Active xEvent query_post_execution_showplan Regular (Legacy) 75.5 93.17 Lightweight in SQL Server 2014 SP2/2016 3.5 62.02 Lightweight in SQL Server 2016 SP1 2 14.3
  • 19.
  • 20. • Information about parameters data type • CPU and execution elapsed time for entire query (root node) • Top waits (using sys.dm_exec_session_wait_stats)
  • 21. • Per operator performance statistics for node and threads • Showplan extended to include RunTimeCountersPerThread • Node costs for parent and children: • Cumulative values for Row mode operators • Singleton values for Batch mode operators Detailed runtime stats we now provide Runtime Info Up to SQL 2016 SQL 2016 / SQL 2014 SP2 SQL 2016 SP1 ActualRows X X X ActualRowsRead X X Batches X X ActualEndOfScans X X X ActualExecutions X X X ActualExecutionMode X X ActualElapsedms X X ActualCPUms X X ActualScans X X ActualLogicalReads X X ActualPhysicalReads X X ActualReadAheads X X ActualLobLogicalReads X X ActualLobPhysicalReads X X ActualLobReadAheads X X InputMemoryGrant X OutputMemoryGrant X UsedMemoryGrant X
  • 22.
  • 23.
  • 24.
  • 25. Searching with pushdown SELECT [ProductID] FROM [Sales].[SalesOrderDetail] WHERE [ModifiedDate] BETWEEN '2011-01-01' AND '2012-01-01' AND [OrderQty] >= 10 ModifiedDate ProductID StoreID OrderQty SalesAmount 2010-12-31 106 01 12 30 2011-01-07 103 04 1 17 2011-01-07 109 04 7 20 2011-02-12 103 03 5 40 2011-03-08 106 05 7 25 2011-04-16 106 02 10 40 2011-07-20 102 02 12 50 2011-10-21 106 03 16 55 2011-12-15 103 03 20 55 (…) (…) (…) (…) (…) 2012-01-01 109 01 11 16 2012-01-11 102 05 5 10 Sales.SalesOrderDetail ModifiedDate ProductID StoreID OrderQty SalesAmount 2010-12-31 106 01 12 30 2011-01-07 103 04 1 17 2011-01-07 109 04 7 20 2011-02-12 103 03 5 40 2011-03-08 106 05 7 25 2011-04-16 106 02 10 40 2011-07-20 102 02 12 50 2011-10-21 106 03 16 55 2011-12-15 103 03 20 55 (…) (…) (…) (…) (…) 2012-01-01 109 01 11 16 2012-01-11 102 05 5 10 ModifiedDate ProductID StoreID OrderQty SalesAmount 2011-04-16 106 02 10 40 2011-07-20 102 02 12 50 2011-10-21 106 03 16 55 2011-12-15 103 03 20 55 (…) (…) (…) (…) (…) 2012-01-01 109 01 11 16 Result Set Actual Rows
  • 26. • In SQL Server 2016, 2014 SP2 and 2012 SP3 • New Showplan attribute ActualRowsRead: • This attribute provides information about how many rows were read by the operator before the residual predicate was applied. • You get this information from Actual Execution Plan. • sys.dm_exec_query_profiles DMV exposes new column actual_read_row_count. Predicate Pushdown in Showplan
  • 27. • In SQL Server 2016 SP1 • New Showplan attribute EstimatedRowsRead: • This attribute provides information about how many rows are estimated to be read by the operator before the residual predicate is applied. • You get this information from Estimated Execution Plan. • sys.dm_exec_query_profiles DMV exposes new column estimated_read_row_count. Predicate Pushdown in Showplan
  • 28.
  • 29. SELECT AddressID FROM Person.[Address] WHERE City = N'Ballard' AND [PostalCode] = '98107' OPTION (QUERYTRACEON 9481) SELECT AddressID FROM Person.[Address] WHERE City = N'Ballard' AND [PostalCode] = '98107' OPTION (USE HINT('FORCE_LEGACY_CARDINALITY_ESTIMATION'))
  • 30. USE HINT TF DB Option DISABLE_OPTIMIZED_NESTED_LOOP 2340 FORCE_LEGACY_CARDINALITY_ESTIMATION 9481 Yes ENABLE_QUERY_OPTIMIZER_HOTFIXES 4199 Yes DISABLE_PARAMETER_SNIFFING 4136 Yes ASSUME_MIN_SELECTIVITY_FOR_FILTER_ESTIMATES 4137 for OldCE 9471 for NewCE DISABLE_OPTIMIZER_ROWGOAL 4138 ENABLE_HIST_AMENDMENT_FOR_ASC_KEYS 4139 ASSUME_JOIN_PREDICATE_DEPENDS_ON_FILTERS 9476 on NewCE FORCE_DEFAULT_CARDINALITY_ESTIMATION 2312
  • 31.
  • 32. •KB 3190548CREATE OR ALTER statement •KB 3191273 and 3191273Self-Referential Integrity operator •KB 3170114dm_db_incremental_stats_properties •3191296Track TLS protocol with trace xEvent
  • 33.
  • 34.
  • 35.
  • 36. Database Number of Objects SSMS sp_clonedatabase DBCC CLONEDATABASE Large Bank DB 20453 Scripting error 378 seconds* 33 seconds (11x) Internal MS DB 80819 OOM 1200 seconds* 24 seconds (50x) ERP DB 1008002 OOM 7200 seconds* 122 seconds (60x) 3177838 Blog post on security Blog post on columnstore Not for production
  • 37. 1 = Conventional Memory Model 2 = Lock Pages in Memory 3 = Large Pages in Memory
  • 38. here
  • 39.
  • 41.
  • 44. Query Store Memory Leak AV for spatial query exec or XML plan Tempdb sysobjvalues latch increase In-Memory OLTP checkpoint files
  • 45.
  • 46. Adaptive QP Automatic Query Plan Tuning Ensuring our Diagnostics on Linux are best in class New Query Store Reports in SSMS v17.0
  • 47. SQL Server Tiger Team Blog Tiger Toolbox GitHub SQL Server Release Blog BP Check SQL Server Standards Support Trace Flags SQL Server Support lifecycle SQL Server Updates Twitter

Editor's Notes

  1. Follow the readme.txt in demo1_2016_diagnostics
  2. Why do I need SQL Server Enterprise edition now with so many programming features in Standard edition? Enterprise edition continues to deliver the highest levels of mission critical scalability, availability, and performance, advanced business intelligence and analytics, as well as maximum virtualization with software assurance.  As an example, customers with mission critical enterprise applications and Enterprise Data Warehouses will need SQL Server Enterprise for Mission Critical high availability using Always On, to enable high-density database computing using maximum virtualization available with software assurance, and for maximum performance and scale above what is provided by Standard Edition (128GB all-up and 32GB for In-memory technologies) with up to 24TB of addressable memory and OS max processors when used with Windows Server 2016. In addition, SQL Server Enterprise supports much higher scale limits and grants special virtualization rights for volume license customers. Maximum Virtualization will continue to be a Software Assurance benefit that is only available to Enterprise Edition customers. More details are covered later in this FAQ.
  3. When you are troubleshooting query performance, metrics are never too much. With that in mind, based on customer feedback, but also our own CSS support, we have added runtime information to Showplan, and exposed a new Extended Event in SQL Server 2016. Regarding Showplan, take a test query on which we are doing a Clustered index Scan, and look the information available until SQL Server 2014: <RunTimeInformation> <RunTimeCountersPerThread Thread="0" ActualRows="8001" ActualEndOfScans="1" ActualExecutions="1" /> </RunTimeInformation> We can see the scan returned 8001 rows, but that doesn’t give you much insight regarding performance of the scan. But below we can observe what kind of detail we can get from runtime stats in SQL Server 2016 RC0. These include the actual rows read, I/O Reads, CPU time, and elapsed time, all exposed per-thread: <RunTimeInformation> <RunTimeCountersPerThread Thread="0" ActualRows="8001" ActualRowsRead="10000000" Batches="0" ActualEndOfScans="1" ActualExecutions="1" ActualExecutionMode="Row" ActualElapsedms="965" ActualCPUms="965" ActualScans="1" ActualLogicalReads="26073" ActualPhysicalReads="0" ActualReadAheads="0" ActualLobLogicalReads="0" ActualLobPhysicalReads="0" ActualLobReadAheads="0" InputMemoryGrant="115008" OutputMemoryGrant="4400" UsedMemoryGrant="2208“ /> </RunTimeInformation> We have also introduced a new Extended Event (query_thread_profile), allowing more insight on the performance of each node and thread: Note: Showplan time scale is shown in milliseconds, while the xEvent shows microseconds for CPU and total time.
  4. Follow the instructions in demo2__query_diagnostics
  5. © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  6. © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  7. Follow the instructions in readme.txt in demo3_pred_push
  8. Ex. For excessive mem grant, you can see how to improve estimations (perhaps update stats), or administratively by using MIN_PERCENT_GRANT and /or MAX_PERCENT_GRANT query hints.
  9. Follow the instructions in demo4_grant_warning