Book Image

SQL Server on Linux

Book Image

SQL Server on Linux

Overview of this book

Microsoft's launch of SQL Server on Linux has made SQL Server a truly versatile platform across different operating systems and data-types, both on-premise and on-cloud. This book is your handy guide to setting up and implementing your SQL Server solution on the open source Linux platform. You will start by understanding how SQL Server can be installed on supported and unsupported Linux distributions. Then you will brush up your SQL Server skills by creating and querying database objects and implementing basic administration tasks to support business continuity, including security and performance optimization. This book will also take you beyond the basics and highlight some advanced topics such as in-memory OLTP and temporal tables. By the end of this book, you will be able to recognize and utilize the full potential of setting up an efficient SQL Server database solution in your Linux environment.
Table of Contents (19 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Temporal tables


One of the big issues in the database world is how to deal with historical records. The goal is to keep each version of the record from its initial insertion through its other, different versions over time. It sounds simple, but its implementation is not so easy. DBA and developers were using different tools, techniques, and hacks to achieve this goal. Some of them are as follows:

  • Triggers
  • Audit logs
  • Data warehouses
  • Custom solutions

Any of them are efficient, but unfortunately, they are not built into the database engine, and in order to be implemented, it requires some things to be reconsidered:

  • Learning new tools
  • Learning new concepts
  • Administration
  • Changes in the application layer

Everything listed here costs time and money. This is the main reason why temporal databases exist as a concept. Microsoft is actually implementing this concept into SQL Server 2016 and subsequent versions, and is calling it temporal tables.

So what is it? A temporal table is a database object that provides...