RevEng: SQL Server Provider: Update tables metadata query for SQL Server 2016 #4697
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
SQL Server 2016 has a concept of a "System-Versioned" table. Each such table, say
XYZ
, is backed by anXYZ_Archive
table. But theXYZ_Archive
table does not have a primary key - so we can't generate an EntityType for it. This is correct as that table is automatically filled in by the system, but to avoid warning messages about all of these tables we should exclude them from the metadata query which returns the list of tables.In SQL Server 2016, there is a new column on
sys.tables
calledtemporal_type
. If the value for that is 1 then it's a backing table (called a "History Table" by SQL Server). But this column does not exist on earlier versions of SQL Server so we need to do something like:The text was updated successfully, but these errors were encountered: