SQL Server 2005 mdf file on 2012

核能气质少年 提交于 2019-12-12 04:37:22

问题


I have a SQL Server 2005 .mdf file I need to install on a server. Can I simply install SQL Server 2012 Express and attach the .mdf file without any issues, or should I stick to 2005 Express to eliminate any issues that may arise?

I should also add it needs to support a ASP.NET 3.5 website.

Cheers


回答1:


If you have all files (mdf, ldf and potentially multiple ndf) and the database was cleanly shut down, you won't have an issue attaching to 2012.

If you have only the mdf it might work but it could also fail.

Either way, first take a backup of the files you have.

That being said, make sure you don't use any features that changed between 2005 and 2012 (see http://technet.microsoft.com/en-us/library/ms143532.aspx for details)



来源:https://stackoverflow.com/questions/16506382/sql-server-2005-mdf-file-on-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!