posts - 81, comments - 262, trackbacks - 0

Recover Database Schema with DBML (SqlMetal)

I upgraded SQL on my laptop and during the process managed to 'lose' my database…. Total n00b move. I couldn't recover the database file (it was over a gig and was quickly written over). Determined not to recreate the work since the last backup, I kept searching for a solution. Then it hit me; pull the database from the data context (dbml) I created with SQLMETAL. Simply call CreateDatabase(), and 'bam' database recovered. Whew!!!

Print | posted on Friday, October 17, 2008 3:52 PM | Filed Under [ Web Programming ]

Powered by:
Powered By Subtext Powered By ASP.NET