Hi
I'm trying to set up some test scripts to demo some of the new V10.1 features. I'm successfully creating a System Temporal Table with versioning and what I'd like to do is to control the dates for the Inserts, updates and deletes that I make. I want to be able to do an insert and generate a System_Begin of 3 days ago, and then do an Update with a System_Begin of 2 days ago, and then a delete with a date of 1 day ago.
I could then construct some queries around specific, predictable time periods to show how the TTQ options would work. I was hoping to use
SET CURRENT TEMPORAL SYSTEM_TIME = CURRENT TIMESTAMP - x days
but this causes an SQL20535N when you try and do an INSERT and appears to be there to allow you to control the queries, not the data IUD.
Does anyone have any suggestions for how to control the system dates to allow me to specify the contents of the History file more exactly?
Thanks
Mark
I'm trying to set up some test scripts to demo some of the new V10.1 features. I'm successfully creating a System Temporal Table with versioning and what I'd like to do is to control the dates for the Inserts, updates and deletes that I make. I want to be able to do an insert and generate a System_Begin of 3 days ago, and then do an Update with a System_Begin of 2 days ago, and then a delete with a date of 1 day ago.
I could then construct some queries around specific, predictable time periods to show how the TTQ options would work. I was hoping to use
SET CURRENT TEMPORAL SYSTEM_TIME = CURRENT TIMESTAMP - x days
but this causes an SQL20535N when you try and do an INSERT and appears to be there to allow you to control the queries, not the data IUD.
Does anyone have any suggestions for how to control the system dates to allow me to specify the contents of the History file more exactly?
Thanks
Mark