Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,

My problem goes something like this-

While attaching the SQL database for my demo application, I got following errors -

<br />
<br />
TITLE: Microsoft SQL Server Management Studio Express<br />
------------------------------<br />
Attach database failed for Server 'NHMS\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)<br />
For help, click: go.microsoft.com/<br />
------------------------------<br />
ADDITIONAL INFORMATION:<br />
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)<br />
------------------------------<br />
The database 'C:\USERS\JON\DOCUMENTS\JON-SHARE\MVCMUSICSTORE\MVCMUSICSTORE\APP_DATA\MVCMUSICSTORE.MDF' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.<br />
Could not open new database 'C:\USERS\JON\DOCUMENTS\JON-SHARE\MVCMUSICSTORE\MVCMUSICSTORE\APP_DATA\MVCMUSICSTORE.MDF'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)<br />
For help, click: go.microsoft.com/><br />
<br />
<br />

Has Any one got such problem?
Any Solution Please?

Thanks in Advance
-Neo182
Posted
Comments
Henry Minute 22-Dec-10 19:24pm    
Have you installed SQL2008 R2 and used it to open the database?
If so, google on 'cannot be opened because it is version 655. This server supports version 612 and earlier.'

You will get lots of hits although last time I looked, a little while ago now, I could not find a solution/work around. There may be one by now though.

1 solution

The problem is that SQL Server 2008 MDF files are not backwards compatible with SQL Server 2005 so you need to recreate your database on SQL Server 2005 and use that MDF file or you need to generate your database on the customer side using a script and not through attaching an existing database MDF file.

http://www.sqlservermart.com/HowTo/MSSQL_Convert_2008_To_2005.aspx[^]
 
Share this answer
 
Comments
thatraja 23-Dec-10 4:47am    
good answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900