1. Let’s Talk About Data
SQLServerGeeks.com
SQL Server 2016 – New Innovations
Avanish Panchal
Regional Mentor
SQLServerGeeks
2. SQL Server 2016 – New features
• Temporal Tables
• JSON Support
3. Real data sources are dynamic
• Historical data may be critical to business success
• Traditional databases fail to provide required insights
So far how we’ve achieved this
• Complex, expensive, limited, inflexible, inefficient
How to make life easy – Use SQL Server 2016
• No change in programming model
• New Insights
Temporal Table & it’s need
4. How does temporal works?
https://msdn.microsoft.com/en-IN/library/dn935015.aspx
5. Temporal table (actual data)
Temporal Queries *
(Time travel,etc.)
How system-time works?
History Table
Regular queries
(current data)
* Include Historical
Version
https://msdn.microsoft.com/en-IN/library/dn935015.aspx
6. Temporal query over Linked Server.
History table can't have constraints
Insert & Update statements can't reference the SYSTEM_TIME
period columns.
TRUNCATE TABLE is not supported while SYSTEM_VERSIONING is
ON.
Direct modification of data in history table is not permitted.
Triggers are not permitted on either the tables.
Usage of replication technologies is limited.
Limitations in Temporal Tables
7. • A human-readable collection of data that we can access in a really
logical manner.
• Compact and simple data exchange format
• The choice on the web
JSON Support
8. JSON data type
NVARCHAR
JSON Functions in SQL Server
To export: FOR JSON
To import: OPENJSON
To handle: AUTO, PATH, ISJSON, JSON_VALUE
How to handle JSON?
9. Thank you
for your time!
Connect us with us:
@SQLServerGeeks
facebook.com/SQLServerGeeks
facebook.com/groups/theSQLGeeks
www.SQLServerGeeks.com
admin@SQLServerGeeks.com