views:

167

answers:

1

I'm working on a web app (it is in asp.net mvc framework beta in visual studio 2008) and want to version control it. How do I version control the database files (*.mdf, binary) in the App_Data folder.

Is there a way to just store the tables-and-whatever definition of the database or do I really need to version control it's contents?

+3  A: 

Export the database structure as creation scripts, and potentially export some table (reference) data as insert scripts, then check those into source control.

Definitely do NOT attempt to put the database binaries (*.mdf) into source control.

Rob Williams