Summary

SQL Server 2016 and 2017 system-versioned temporal tables are a very nice feature you can start using immediately, without changes to your applications. You can use them for auditing all changes in specific tables. You can retrieve the state of those tables at any point in time in history. You can find all states and changes in a specific period. SQL Server automatically updates the period in the current row and inserts the old version of the row into the history table as soon as you update the current row.

Nevertheless, there is still a lot to do in future versions of SQL Server. We still need better support for application validity times, including support for constraints and optimization of temporal queries, and more flexibility ...

Get SQL Server 2017 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.