Download presentation
Presentation is loading. Please wait.
Published byTyler Hodge Modified over 8 years ago
1
UNIQUE AND NOT DULLwww.MyGareth.com
2
UNIQUE AND NOT DULLwww.MyGareth.com Agenda New Features in SQL Server 2016 About me General Enhancements In-memory OLTP Enhancements Always Encrypted Query Store and Live Query Statistics Row-Level Security Stretch Database AlwaysOn Enhancements
3
UNIQUE AND NOT DULLwww.MyGareth.com Agenda (cont) New Features in SQL Server 2016 PolyBase JSON Support TempDB enhancements References
4
UNIQUE AND NOT DULLwww.MyGareth.com Gareth Swanepoel From South Africa originally Been in IT for 25+ years Was first a sysadmin, then a DBA Sr. Data Platform & BI Consultant with Pragmatic Works Author - SQL 2012 Pro Admin Speaker – SQL User Groups, SQL Saturdays, SQL PASS Summit, webinars eMail : GarethS@pragmaticworks.comGarethS@pragmaticworks.com Twitter : @GarethSwan Website : www.MyGareth.comwww.MyGareth.com
5
UNIQUE AND NOT DULLwww.MyGareth.com
6
UNIQUE AND NOT DULLwww.MyGareth.com General Enhancements Advanced Analytics (RRE integration) Data Exploration and Predictive Modeling with R over SQL Server data Operationalizing your R code using T-SQL Transactional replication from SQL Server to Azure SQL DB Per Session Wait Statistics sys.dm_exec_session_wait_stats (instance level – sys.dm_os_wait_stats) Instant File Initialisation configuration during initial setup Enhanced backup to Azure
7
UNIQUE AND NOT DULLwww.MyGareth.com In-memory OLTP Enhancements Feature/LimitSQL Server 2014SQL Server 2016 Maximum size of durable table256 GB2 TB LOB (varbinary(max), [n]varchar(max))Not supportedSupported* Transparent Data Encryption (TDE)Not supportedSupported Offline Checkpoint Threads11 per container ALTER PROCEDURE / sp_recompileNot supportedSupported (fully online) Nested native procedure callsNot supportedSupported Natively-compiled scalar UDFsNot supportedSupported ALTER TABLE Not supported Not supported (DROP / re-CREATE) Partially supported (offline – details below) DML triggersNot supported Partially supported (AFTER, natively compiled) Indexes on NULLable columnsNot supportedSupported Non-BIN2 collations in index key columnsNot supportedSupported Non-Latin codepages for [var]char columnsNot supportedSupported Non-BIN2 comparison / sorting in native modulesNot supportedSupported Foreign KeysNot supportedSupported Check/Unique ConstraintsNot supportedSupported ParallelismNot supportedSupported OUTER JOIN, OR, NOT, UNION [ALL], DISTINCT, EXISTS, INNot supportedSupported Multiple Active Result Sets (MARS) (Means better Entity Framework support.) Not supportedSupported SSMS Table DesignerNot supportedSupported
8
UNIQUE AND NOT DULLwww.MyGareth.com Always Encrypted Protects data at rest and in motion Encryption key resides with the application Encryption and Decryption are transparent & happen on application side Always Encrypted Driver -.NET Framework 4.6
9
UNIQUE AND NOT DULLwww.MyGareth.com Always Encrypted Encryption is at the column level, rather than at the database level Feature-based restrictions: Temporal tables Triggers are partially supported Full-text search Replication Change Data Capture In-memory OLTP Stretch database
10
UNIQUE AND NOT DULLwww.MyGareth.com Flight data recorder (black box) for your database Query store retains multiple execution plans per query Collects query text along with all relevant properties Two stores: Plan store – persisting execution plan information AND metrics Runtime statistics store – persisting the statistics information Catalog views: sys.query_store_plan, sys.query_store_query, sys.query_store_query_text Query Store
11
UNIQUE AND NOT DULLwww.MyGareth.com Easily find & fix plan regression Pinpoint the most expensive queries Minimise SQL Server upgrade risks Analyse workload patterns With query store, you can ….
12
UNIQUE AND NOT DULLwww.MyGareth.com Regressed Queries Overall Resource Consumption Top Resource Consuming Queries Tracked Queries Query Store Views
13
UNIQUE AND NOT DULLwww.MyGareth.com Regressed Queries
14
UNIQUE AND NOT DULLwww.MyGareth.com Top Resource Consumers
15
UNIQUE AND NOT DULLwww.MyGareth.com Live Query Statistics Include Live Query Statistics
16
UNIQUE AND NOT DULLwww.MyGareth.com Live Query Plan
17
UNIQUE AND NOT DULLwww.MyGareth.com Activity Monitor
18
UNIQUE AND NOT DULLwww.MyGareth.com Row-Level Security Row level access control Based on user’s group membership or execution context Restriction logic located at the DB tier rather than at the app tier Optimizer automatically applies predicate function to queries Security Predicates: Filter Block Steps: Create predicate function Create security policy to bind function to table(s)
19
UNIQUE AND NOT DULLwww.MyGareth.com Stretch Database Leverages Azure to store and query archive data Archives data transparently and securely Reduced cost, performance gains against current (on-premises) data Can join across local and remote data User code will still point to SQL on-premises instance Run the Stretch Database Advisor EXEC sys.sp_configure N'remote data archive', '1';
20
UNIQUE AND NOT DULLwww.MyGareth.com Stretch Database
21
UNIQUE AND NOT DULLwww.MyGareth.com Stretch DB Limitations (CTP 3.0) Memory-optimized and replicated tables Tables that contain FILESTREAM data, use Change Tracking or Change Data Capture Data types such as timestamp, sql_variant, XML, geography or columns that are Always Encrypted Check, default, or foreign key constraints that reference the table XML, full-text, spatial, clustered columnstore indexes and indexed views UPDATE or DELETE statements, CREATE INDEX or ALTER INDEX operations Limitations: https://msdn.microsoft.com/en-us/library/mt605114.aspxhttps://msdn.microsoft.com/en-us/library/mt605114.aspx
22
UNIQUE AND NOT DULLwww.MyGareth.com Distributed Transaction Coordinator support Load Balancing for Readable Secondaries Additional synchronous failover targets – up to 3 Optional setting to fail over based on database failure Group Managed Service Accounts are fully supported Improved log transport performance AlwaysOn Enhancements
23
UNIQUE AND NOT DULLwww.MyGareth.com PolyBase Introduced in PDW v2 Use T-SQL to access data in Hadoop Configuration: Install PolyBase Choose Hadoop or Azure using sp_configure Create external data source and file format in SQL Create external table to reference the data HDFS SQL 2016 Hadoop Results7 2 Map job 5 HDFS blocks DB 3 4 6 SQL1 MapReduce
24
UNIQUE AND NOT DULLwww.MyGareth.com JSON Support JSON - JavaScript Object Notation. JSON support is one of the highest ranked requests by customers. JSON is used primarily to transmit data between a server and web application, as an alternative to XML. JSON is used in a majority of Web APIs and is growing significantly. CTP2 – FOR JSON [PATH | AUTO] CTP3 – OPENJSON, IsJSON ( ), JSON_Value ()
25
UNIQUE AND NOT DULLwww.MyGareth.com TempDB Enhancements Trace Flags 1117 & 1118 not required Setup adds TempDB files = CPU count or 8, whichever is lower Default initial size is 8MB and the default autogrowth is 64MB Multiple volumes for TempDB files Configure TempDB during initial setup
26
UNIQUE AND NOT DULLwww.MyGareth.com Microsoft SQL Server 2016 Product Page: http://www.microsoft.com/en-us/server-cloud/products/sql-server-2016/ Always Encrypted: https://msdn.microsoft.com/en-us/library/mt163865.aspx Tim Radney - Introduction to Stretch Database: http://sqlperformance.com/2015/08/sql-server-2016/intro-stretch-database SQL Server Query: https://msdn.microsoft.com/en-us/library/dn817826.aspx https://channel9.msdn.com/Shows/Data-Exposed/Query-Store-in-SQL-Server- 2016https://channel9.msdn.com/Shows/Data-Exposed/Query-Store-in-SQL-Server- 2016 References
27
UNIQUE AND NOT DULLwww.MyGareth.com Row-Level Security: https://msdn.microsoft.com/en-us/library/dn765131.aspx Stretch Database: https://msdn.microsoft.com/en-us/library/dn935011.aspx PolyBase in SQL Server 2016: https://channel9.msdn.com/Shows/Data-Exposed/PolyBase-in-SQL-Server-2016 Aaron Bertrand - SQL Server 2016 Advanced JSON Techniques: https://www.mssqltips.com/sqlservertip/4073/sql-server-2016-advanced-json- techniques--part-1/https://www.mssqltips.com/sqlservertip/4073/sql-server-2016-advanced-json- techniques--part-1/ Klaus Aschenbrenner - TempDB Changes in SQL Server 2016: http://www.sqlpassion.at/archive/2015/11/09/tempdb-changes-in-sql-server-2016/ References
28
UNIQUE AND NOT DULLwww.MyGareth.comServices Speed development through training and rapid development services from Pragmatic Works.Products BI products to convert to a Microsoft BI platform and simplify development on the platform. Foundation Helping those who do not have the means to get into information technology and to achieve their dreams. eMail : GarethS@pragmaticworks.comGarethS@pragmaticworks.com Twitter : @GarethSwan Website : www.MyGareth.comwww.MyGareth.com Thanks
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.