Professional Documents
Culture Documents
David Cobb
sql@davidcobb.net
Daveslog.com
Presenter
Past Roles:
Tech Support, Network Admin, Web
Developer, DBA
Current:
Systems Architect for CheckAlt.com
Reporting Improvements
Analysis Services Improvements
Integration Services Improvements
Whitepaper:
http://bit.ly/sql2016-columnstore
SQL Server SQL Server SQL Server Azure SQL
Columnstore Index Feature
2012 2014 2016 (CTP2) Database
Batch execution for multi-threaded queries yes yes yes yes
1 1
Read-only nonclustered columnstore index on heap or btree. yes yes yes yes
Additional btree indexes allowed on a heap or btree that has a columnstore index. yes yes yes yes
Whitepaper:
http://bit.ly/sql2016-in-memory-oltp
Aaron Bertrand Blog:
http://sqlperformance.com/2015/05/sql-server-
2016/in-memory-oltp-enhancements
KEY IMPROVEMENTS FOR IN MEMORY OLTP
Demo
Best 2016
Feature?
TEMPORAL TABLES
Demo
Look back in time
at your data
Table Templates
Works along with SQL AUDIT
for complete data change history
(WHO,WHAT,WHEN)
New Time Travel SQL Syntax!
Syntax for Querying Temporal Data
SYNTAX FOR QUERYING TEMPORAL DATA
Expression Qualifying Rows Description
AS OF<date_time> SysStartTime <= date_time AND SysEndTime > Returns a table with single record for each row containing the values that were actual (current) at the
date_time specified point in time in the past. Internally, a union is performed between the temporal table and
its history table and the results are filtered to return the values in the row that was valid at the point
in time specified by the <date_time> parameter. The value for a row is deemed valid if
thesystem_start_time_column_name value is less than or equal to the <date_time> parameter value
and thesystem_end_time_column_name value is greater than the <date_time> parameter value.
FROM<start_date_time>TO SysStartTime < end_date_time AND Returns a table with the values for all record versions that were active within the specified time range,
<end_date_time> SysEndTime > start_date_time regardless of whether they started being active before the <start_date_time> parameter value for the
FROM argument or ceased being active after the<end_date_time> parameter value for the TO
argument. Internally, a union is performed between the temporal table and its history table and the
results are filtered to return the values for all row versions that were active at any time during the
time range specified. Records that became active exactly on the lower boundary defined by the
FROM endpoint are included and records that became active exactly on the upper boundary defined
by the TO endpoint are not included.
BETWEEN<start_date_time SysStartTime <= end_date_time AND Same as above in the FOR SYSTEM_TIME FROM <start_date_time>TO <end_date_time>
>AND<end_date_time> SysEndTime > start_date_time description, except the table of rows returned includes rows that became active on the upper
boundary defined by the <end_date_time> endpoint.
CONTAINED SysStartTime >= start_date_time AND Returns a table with the values for all record versions that were opened and closed within the
IN(<start_date_time> , SysEndTime <= end_date_time specified time range defined by the two datetime values for the CONTAINED IN argument. Records
<end_date_time>) that became active exactly on the lower boundary or ceased being active exactly on the upper
boundary are included.
Source: https://msdn.microsoft.com/en-us/library/dn935015%28v=sql.130%29.aspx
ALWAYS ENCRYPTED
Demo
Data encypted in flight and
at rest
Better than TDE, encrypted
for all users, even admins.
Requires .Net 4.6!
(As does SSMS 2016)
Demo
Interesting solution to
where to put that
historical data
without taking up
valuable disk space or
prolonging backups.
Queries dont change,
SQL combines local
and stretched data.
Looking forward to
additional controls
here.
LIVE QUERY STATISTICS
Demo
Works with debugging!
ROW LEVEL SECURITY
Demo
Already in V12 version of Azure
SQL Database
Extremely customizable, granular
control over data access on row
by row level.
Demo
Already in V12 version of Azure SQL
Database
Effectively protects sensitive data in
application layer, not effective for
admins or users with SELECT rights.
OTHER STUFF