Say i wanted to update my ASP.NET MVC website. All the data for different view are stored on two SQL dbs, one for roles and membership and one for content. If a table in a db is based off a certain model and I modify that model how can I merge the data from the old model to the new one? Preferably automatically.
I am currently using DropAndCreateIfModelChanges. I understand I will most likely need to copy the db and have say a production db and a dev db that will handle all model changes. The dev db in turn must be copied to the production.
Or in SQL mgmt can I manually add the new columns in SQL mgmt and not drop the DB with its data? That would work perfectly too.
Thank in advance…might not get back to read tonight…
EDIT: So with the info provided below can anyone recommend a tool for db migration
Using ASP.NET 4, IIS 7.5, and SQL 2008 R2. Which are easiest to integrate, which and simple and which are more advanced?
I use and recommend DbUp, because it’s simple and script based, but the are several other migrations tools like: