How to version control SQL Server databases?

后端 未结 10 1031
醉话见心
醉话见心 2020-12-28 19:04

I have SQL Server databases and do changes in them. Some database tables have records that are starting records required my app to run. I would like to do version control ov

10条回答
  •  被撕碎了的回忆
    2020-12-28 19:12

    You should rather use DB specific versioning.

    http://msdn.microsoft.com/en-us/library/ms189050.aspx

    When either the READ_COMMITTED_SNAPSHOT or ALLOW_SNAPSHOT_ISOLATION database options are ON, logical copies (versions) are maintained for all data modifications performed in the database. Every time a row is modified by a specific transaction, the instance of the Database Engine stores a version of the previously committed image of the row in tempdb. Each version is marked with the transaction sequence number of the transaction that made the change. The versions of modified rows are chained using a link list. The newest row value is always stored in the current database and chained to the versioned rows stored in tempdb.

提交回复
热议问题