Seed data with old dates in Temporal Table - SQL Server

后端 未结 4 574
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 01:00

I need to seed data for my local development purpose in the following Temporal Table, the start date should be old. The given Table Schema is

CREATE TABLE [d         


        
4条回答
  •  余生分开走
    2020-12-16 01:21

    Note Sql server 2016 introduced only System-Versioned Temporal Tables from ANSI Standard 2011 which defines 3 types of temporal tables

    As of December 2011, ISO/IEC 9075, Database Language SQL:2011 Part 2: SQL/Foundation included clauses in table definitions to define "application-time period tables" (valid time tables), "system-versioned tables" (transaction time tables) and "system-versioned application-time period tables" (bitemporal tables). https://en.wikipedia.org/wiki/Temporal_database

    System-Versioned Temporal Tables do not support changes in the already registered history by design. So to create a test temporal data set you need to re-execute all hystory INSERTs in an order.

提交回复
热议问题