Version control of MDF files

I am working on a web application (it is in beta version of asp.net mvc in visual studio 2008) and you need to control the version. How to manage versions of database files (* .mdf, binaries) in the App_Data folder.

Is there a way to just save the table and any database definition, or do I really need to control the version of the content?

+7
version-control visual-studio database-design
source share
1 answer

Export the database structure as creation scripts and potentially export some tables (reference) data as insert scripts, and then check them in the original control.

Definitely DO NOT attempt to put the database binaries (* .mdf) in the source control.

+7
source share

All Articles