Top Banner
Edinburgh SQL Server 2016 Discovery Day @SQLScot @sqltomato
28

Sql server 2016 Discovery Day

Apr 16, 2017

Download

Technology

Thomas Sykes
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sql server 2016 Discovery Day

Edinburgh

SQL Server 2016

Discovery Day

@SQLScot @sqltomato

Page 2: Sql server 2016 Discovery Day

About Me

• Data Platform Consultant for Quorum in Edinburgh

• Using SQL Server since version 7.0

• MCDBA, MCITP and MCSE in SQL Server

• MCS in Azure Implementation and Hyper-V

• Certified Technical Trainer

• @sqltomato

• Sqltomato.com

Page 3: Sql server 2016 Discovery Day

SQL Server 2016 - Overview

Page 4: Sql server 2016 Discovery Day

How Microsoft develop SQL

Cloud-first but not cloud-only

Many interesting and compelling on-premises cloud scenarios

Think of APS as the “evolution” of Microsoft's current SQL Server Parallel Data Warehouse product

SQL Server and

APS

Azure

SQL Virtual

Machines

Azure

SQL Database

Azure

SQL Data

Warehouse

Page 5: Sql server 2016 Discovery Day

SQL Server Physical through to PaaS

Shared Lower Cost

Dedicated Higher Cost

Higher Administration Lower Administration

Off Premises

Hybrid Cloud

Physical

SQL ServerPhysical Machines(raw Iron)SQL

Virtual

SQL Server Private CloudVirtualized Machines + Appliances

Infrastructure as a service

SQL Server in Azure VMVirtualized machinesSQL

Platform as a service

Software as a services

SQL DatabaseVirtualized Databases

SQL

On Premises

Page 6: Sql server 2016 Discovery Day

What’s New?

Live Query Statistics

Query Store

Temporal Tables

Stretch Database

Availability Groups

T-SQL Extras

Others

Others – Business Intelligence

Page 7: Sql server 2016 Discovery Day

Live Query Statistics

View the live execution plan of an active query

Because this data is available in real time without needing

to wait for the query to complete, these execution

statistics are extremely useful for debugging query

performance issues

Page 8: Sql server 2016 Discovery Day

Live Query Statistics

Not Supported:

Queries using columnstore indexes

Queries with memory optimized tables

Natively compiled stored procedures

Page 9: Sql server 2016 Discovery Day

Query Store

Provides database administrators with insight on query

plan choice and performance

Stores history of queries, plans, and runtime statistics

Has graphical interface! - Important for adoption

Page 10: Sql server 2016 Discovery Day

Query Store

Durability latency controlled by DB option

DATA_FLUSH_INTERNAL_SECONDS

Compile

Execute

Plan store

Runtime stats

Query

Store

schema

Stores all plan choices and performance metrics

Works across restarts / upgrades / recompiles

Page 11: Sql server 2016 Discovery Day

Query Store

Page 12: Sql server 2016 Discovery Day

Query Store

Easy to enable either T-SQL or right-click per database

option

ALTER DATABASE AdventureWorks2012 SET

QUERY_STORE = ON;

To look at current options

sys.database_query_store_options

Page 13: Sql server 2016 Discovery Day

Temporal Tables

Tracking and analyzing changes in data is often important

Easy to use and setup

System versioned tables – SQL Server keeps track of the versioning

Provides correct information about stored facts at any point in time, or

between two points in time using BETWEEN

Standard Edition feature

Page 14: Sql server 2016 Discovery Day

Temporal Tables

Simple syntax

Page 15: Sql server 2016 Discovery Day

Temporal Tables

Temporal tables work by creating a new system versioned table

Temporal table (actual data)

* Old versions

History table

Page 16: Sql server 2016 Discovery Day

Stretch Database

Per table archiving rows into the PaaS service Azure SQL

v12 Database

Creates a database such as

Creates a Standard service tier at the S3 performance

level 250GB maximum size (~£92/month)

Blurring the line between on premise and cloud -

achieving a hybrid solution

Page 17: Sql server 2016 Discovery Day

Stretch Database

Not Supported:

Replicated, Memory-optimized or Change Data Capture

tables

geometry, geography, XML, UDT types

UPDATE or DELETE operations!

ALTER TABLE operations

Uniqueness is not enforced for UNIQUE constraints and

PRIMARY KEY constraints

Page 18: Sql server 2016 Discovery Day

Availability Groups

Although a niche enhancement - Load-balancing of read-intent connection requests is now supported across a set of read-only replicas

Much more relevant for our infrastructure team management - Group Managed Service Accounts are now supported for Always On Failover Clusters - Windows Server 2012 R2, an update is required to avoid temporary downtime after a password change!

Support for distributed transactions and the distributed transaction co-ordinator on Windows Server 2016

Page 19: Sql server 2016 Discovery Day

Azure Secondaries

You can now have readable secondaries when using PaaS

under any tier and therefore can be used to offload read-

only workloads such as reporting jobs.

With the addition of Azure Active Directory customers

can manage user access to both primary and all secondary

databases and eliminating the need for managing

credentials in databases all together.

Page 20: Sql server 2016 Discovery Day

T-SQL Extras

A new query hint NO_PERFORMANCE_SPOOL can prevent

a spool operator from being added to query plans. This

can improve performance when many concurrent queries

are running with spool operation

You can now TRUNCATE TABLE WITH PARTITIONS to only

truncate specified partitions of a table

Page 21: Sql server 2016 Discovery Day

Others

JSON Support – using FOR JSON like FOR XML

Backup to Azure using block blobs – more space, allows

striping

tempdb - files automatically provisioned

Option in installation for setting up Instant File

Initialisation

Maintenance Plans – Have many more options including

index fragmentation level options

Page 22: Sql server 2016 Discovery Day

Others

Check for Updates! in Management Studio

Page 23: Sql server 2016 Discovery Day

Others New report replaces the need to use the Management Data Warehouse

to analyze which tables and stored procedures are candidates for in-

memory optimization

New Transaction Performance Analysis Overview report

Page 24: Sql server 2016 Discovery Day

Others

Azure SQL Database PaaS (Platform as a Service) solution

now has powerful Premium tiers – P11 with 1750 DTU

(Database Throughput Unit)

DTU is a blended measure of CPU, memory, reads, and

writes

You can quickly use the images to build an IaaS SQL Server

2016 test VM in Azure to test and learn these new

technologies

Page 25: Sql server 2016 Discovery Day

Others – Business Intelligence

R now in Business Intelligence

Polybase included – previously only in PDW (Parallel Data

Warehouse)

Integration Services (SSIS) fans will be happy to know that

designer now supports previous versions.

Many new features in Reporting Services including KPI’s

Page 26: Sql server 2016 Discovery Day

Others – Business Intelligence

Page 27: Sql server 2016 Discovery Day

Resources

Live Query Statistics - https://msdn.microsoft.com/en-

US/library/dn831878.aspx

Query Store - https://msdn.microsoft.com/en-US/library/dn817826.aspx

Stretch Database - https://msdn.microsoft.com/en-US/library/dn935011.aspx

Availability Groups – https://msdn.microsoft.com/en-

US/library/hh710054.aspx#loadbalancing

Truncate Table - https://msdn.microsoft.com/en-US/library/ms177570.aspx

Management Studio - https://msdn.microsoft.com/en-

us/library/mt238290.aspx

Page 28: Sql server 2016 Discovery Day

THANK YOU