A time travel With temporal tables Leonel Abreu

Slides:



Advertisements
Similar presentations
3 Ways to Integrate Business Systems to Partners
Advertisements

Microsoft Connect /6/ :05 AM
With Temporal Tables and More
SQL Server on Linux CTP 1.1 Florian
Making of the Ignite Bot
Developing modern applications with Temporal Tables and JSON
Microsoft’s shiny dashboard-tool
Data Platform and Analytics Foundational Training
Katowice,
Temporal Databases Microsoft SQL Server 2016
Successfully migrate existing databases to Azure SQL Database
10 Amazing Things About Power BI You Don’t Know
Microsoft /23/2018 8:20 PM THR3038 Implement dev and test scenarios using Azure and Visual Studio Team Services Alex Mang Azure MVP © 2016 Microsoft.
Microsoft /2/2018 3:42 PM BRK3129 Query Big Data using the Expanded T-SQL footprint with PolyBase in SQL Server 2016 Casey Karst Program Manager.
Temporal Databases Microsoft SQL Server 2016
Microsoft Professional Program
Introduction to SQL 2016 Temporal Tables
Developing apps for the Internet of Things
Need for Speed: Why Applications With No Database and No Services are Fast ARC334 Nick Randolph – Built to Roam.
A time travel with temporal tables
Microsoft Ignite /22/2018 3:27 PM BRK2121
Get Started with Common Data Model (CDM) and PowerApps
Design Seamless Upgrades to SQL Server 2016 with Query Store
Azure API Management Jothi Prakash A
Mission-critical performance with Microsoft SQL Server 2016
Automating the testing of BI Solutions wih NBi
Add intelligence to Dynamics AX with Cortana Intelligence suite
Monitor your Microservices with Application Insights
Analytics for Apps: Landing and Loading Data into SQL Data Warehouse
Security enhancements in SQL Server 2016
Deploy Windows 10 Mobile for the mobile workforce
Amit Banerjee Sr. Program Manager Microsoft Data Platform Group
Traveling in time with SQL Server 2017
Meetup: Use Microsoft Technologies to Real World IoT Scenario
Cardinality Estimator 2014/2016
F5 WAF in Azure Security Center
SQL Server 2016 New Features
11/18/2018 2:14 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
It’s About Time : Temporal Table Support in SQL Server 2016/2017
<Enter course name here>
BRK2279 Real-World Data Movement and Orchestration Patterns using Azure Data Factory Jason Horner, Attunix Cathrine Wilhelmsen, Inmeta -
11/22/2018 1:43 PM THR3005 How to provide business insight from your data using Azure Analysis Services Peter Myers Bitwise Solutions © Microsoft Corporation.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
SQL Server AG Monitoring and Troubleshooting
Application Insights Diagnostics Preview
Azure SQL DWH: Optimization
SQL Server on Linux: High Availability And Disaster Recovery
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
PowerShell for the DBA: Why I love my inner pig-dog
Please support our sponsors
Microsoft Connect /17/2019 9:55 PM
What query folding means to self-service BI projects
Multi-client SSAS deployment
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Azure Functions & Aurelia Serverless SPAs
Azure SQL DWH: Tips and Tricks for developers
Microsoft Build /27/2019 2:26 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Zero to Tabular Patrick LeBlanc Data Platform Solution Architect
Fewer cursors since SQL Server 2012 Came Along
Getting the most out of Azure resources with Azure Advisor
Data Time Travel with Temporal Tables
SharePoint Server Assessment Results
System Center Operations Manager Assessment Results
Reinhard Flügel Possiblities and Limitations of System-Versioned Temporal Tables beyond the Basics.
SQL-Server System-Versioned Temporal Tables -Foundation
Reinhard Flügel Possiblities and Limitations of System-Versioned Temporal Tables beyond the Basics.
Data Time Travel with Temporal Tables
Reinhard Flügel Possiblities and Limitations of System-Versioned Temporal Tables beyond the Basics.
Thanks to All Sponsors Gold Sponsors Silver Sponsor Bronze Sponsor.
Data Time Travel with Temporal Tables
Presentation transcript:

A time travel With temporal tables Leonel Abreu leonel.abreu@gmail.com https://www.linkedin.com/in/leabreu https://es.linkedin.com/in/leabreu

Our Sponsors If you think, that a SQL Saturday is a nice possibility to learn from and network with fellow SQL Server enthusiasts FOR FREE, I just ask you one thing: Visit the sponsor booths and chat with the sponsors! They are covering the expenses for each and every of you, with is around EUR 60 …

Agenda What’s a Temporal Table? It’s useful for A Short “How to” Advantages and how to use it It’s useful for Auditing efects Disaster Recovery Trending Analytics A Short “How to” Scenario and demo

What is a temporal table? Also known as System Versioned Because keep changes Just two extra columns To define periods Finally a second table Which contains the history

How does it work? Source: https://msdn.microsoft.com/en-us/library/dn935015.aspx

How does it work? Source: https://msdn.microsoft.com/en-us/library/dn935015.aspx

Advantages Security Easy to maintain Can be used Is not possible to modify the historical data Easy to maintain Additional coding to insert/update/delete data is not required Can be used For new tables For existing tables

Why temporal tables? Auditing Time Travel Recovering All data changes and forensics if necessary Time Travel State of data as of any time in the past Recovering From accidental data changes, as undesired DELETE operations

Why temporal tables? Calculate Also BI Schema included Trends over time Also BI Can be used to do SCD Schema included If the table structure is changed, it is also recorded

Why temporal tables? Real data sources are dynamic 9/4/2018 7:12 PM Why temporal tables? Real data sources are dynamic Historical data may be critical to business success Traditional databases fail to provide required insights Workarounds are… Complex, expensive, limited, inflexible, inefficient SQL Server 2016 makes life easy No change in programming model New Insights © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Why temporal tables? Azure SQL Database Facts: Solution: Microsoft Ignite 2015 9/4/2018 7:12 PM Why temporal tables? Facts: History is much bigger than actual data Retained between 3 and 10 years “Warm”: up to a few weeks/months “Cold”: rarely queried SELECT * FROM Department FOR SYSTEM_TIME AS OF '2010.01.01' Azure SQL Database Solution: history as a stretch table: PeriodEnd < “Now - 6 months” © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

How to implement it? Source: https://msdn.microsoft.com/en-us/library/dn935015.aspx

How to implement it?

Query Clauses AS OF FROM TO SysStartTime SysStartTime <= date_time SysEndTime > date_time FROM TO SysStartTime < end_date_time SysEndTime > start_date_time

Query Clauses BETWEEN AND CONTAINED IN ALL SysStartTime <= end_date_time SysEndTime > start_date_time CONTAINED IN SysStartTime >= end_date_time SysEndTime <= start_date_time ALL Returns the union between the current and history table

Schaumamal SVT

Q & A

Please give us feedback! How did you like it? Please give us feedback! to the event: www.sqlsaturday.com/579/eventeval.aspx to me as a speaker: www.sqlsaturday.com/579/sessions/sessionevaluation.aspx

Ressources SQL Server 2016 in 15 Minuten SQL PASS Austria Homepage https://channel9.msdn.com/Series/SQLServer-2016-in-15-Minuten SQL PASS Austria Homepage http://austria.sqlpass.org SQL PASS Austria Meeting Archive http://sdrv.ms/ZFVdnM

Thank You! If you think, that a SQL Saturday is a nice possibility to learn from and network with fellow SQL Server enthusiasts FOR FREE, I just ask you one thing: Visit the sponsor booths and chat with the sponsors! They are covering the expenses for each and every of you, with is around EUR 60 …