Avoid schema mismatch in System-Versioned tables

后端 未结 3 660
眼角桃花
眼角桃花 2021-01-11 20:45

Looking for a workaround for:

Error: SQL71609: System-versioned current and history tables do not have matching schemes. Mismatched column: \'XXXX\'.
         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-11 21:21

    I can reproduce this problem. We (the SQL Server tools team) will work to get this fixed in a future version of SSDT. In the meantime, I believe you can work around this by explicitly defining the history table (i.e. add the history table with its desired schema to the project), and then manually keep the schema of the current and history table in sync.

    If you encounter problems with explicitly defining the history table, try closing Visual Studio, deleting the DBMDL file in the project root, and then re-opening the project.

提交回复
热议问题