Вопрос

Ive been working on some stuff with Visual Studio 2008, and SQL 2008 aswell.. Then i opened the project on another computer with 2012 version.

And now when im trying to work with the files in 2008 again, i cant open my database.mdf, becouse the 2012 sql has upgraded my database file...

Anything i can do to save it? (Btw. the data aint that important, but more the whole table setup and relations)

Это было полезно?

Решение

Install 2012 SQL Server Express with Management tools, attach the MDF and extract the schema by generating "create" scripts for the objects you want using the wizard, then re-run the scripts on the new 2008 DB, don't think there's a way to downgrade. See here.
Or you can just keep developing on top of SQL2012, shouldn't be a problem even if you use visual studio 2008.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top