Exposing SQL Server database objects as files in a file system

后端 未结 6 1865
庸人自扰
庸人自扰 2020-12-10 09:24

There\'s more than one file system

Most version control tools operate on the local disk file system.

Database objects for most relational database systems

6条回答
  •  被撕碎了的回忆
    2020-12-10 10:17

    We use Red Gate to compare current schema against the scripted files stored in SVN for baselines, versioning etc

    However, our master reference is actually a restored copy of production. This is our baseline and should correspond to SVN. It's part of deployment process to commit the master scripts to SVN, which Red Gate does usefully: it only changing the files for changed objects.

    We further separate our working scripts and release scripts (changes only), so we always have a master DB and a baseline in SVN. We only use scripts for development though.

    Database source control is good stuff, but it's challenging to implement because of the nature of what a SQL Server object is: a row or 3 in some tables...

提交回复
热议问题