Temporal Tables
ben.collins
Posts: 2
Does any know if ReadyRoll is compatible with SQL Server temporal tables?
We are trying to use it with Octopus Deploy and I'm getting syntax error messages when I try to enable system versioning.
Error: : Incorrect syntax near SYSTEM_VERSIONING
Using ReadyRoll.MSBuild.1.13.10.1457
We are trying to use it with Octopus Deploy and I'm getting syntax error messages when I try to enable system versioning.
ALTER TABLE dbo.Accounts SET (SYSTEM_VERSIONING = ON(HISTORY_TABLE = dbo.AccountsHistory));
Error: : Incorrect syntax near SYSTEM_VERSIONING
Using ReadyRoll.MSBuild.1.13.10.1457
Tagged:
Comments
I've sent you a private build that resolves the issue, however it should be included in the next ReadyRoll release.
Product Manager
Redgate Software
I'm concerned about the problem you experienced with 1.16.18088. Was this also related to the temporal table issue or was it a more general issue with your installation?
Product Manager
Redgate Software
I actually tried both 2016 and Azure V12 as targets, both of them fail while deploying script from powershell:
Surprisingly, same migration via Visual Studio add-in just works.
18088 problem was more general and had nothing to do with temporal tables (we introduced them later). In particular, 18088 in combination with most recent add-in at the time wasn't able to create database on local with windows auth. Powershell, on the other hand, worked fine. But I confirm it to work with current add-in, so I think this one can be considered resolved.
Thank you,
Andriy
Product Manager
Redgate Software
And thank you personally, ReadyRoll is great product.
Note that a fix for temporal tables in the deployment script (issue 1694) was released today in 1.16.18100.
If you continue to encounter issues, please let me know.
Product Manager
Redgate Software
Thank you!
Btw, in case anyone is wondering, professor is referring to the following items in the release notes:
sqlproj
file for deployment with Octopus (Note: MSBuild 15.0 or Visual Studio 2017 is required). If you want OctoPack to keep logging such warnings anyway, add the following argument within your Continuous Integration build configuration:/p:MSBuildWarningsAsMessages=[blank]
Product Manager
Redgate Software