Convert SQL Server Express 2005 .mdf to 2008 .mdf

sql-server-2005-expresssql-server-2008-expresssql-server-express

Hi I have a Visual Studio solution and an ASP.NET MVC project that uses a SQL Server Express 2005 database file in the App_Data. I want to know how I can upgrade this file so it works for SQL Server Express 2008 ?

Thanks

Best Answer

You can issue the Attach command in SQL Management Studio 2008. It will name the database with the path to the .mdf, but it'll use it no problem.

alt text

The database will be in 2005 compatibility mode, but you can certainly change that yourself as you see fit.

Related Topic