Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server 'AM-PC\SQLEXPRESS'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The database 'dfdfdff'cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported.
Could not open new database 'dfdfdff'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 948)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=948&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
Posted
Updated 13-Jul-12 23:27pm
v2

The error message is pretty clear: you are trying to open a database created in a later version of SQL Server.
At a guess, the DB was created by SQL Server 2008 R2, and you are trying to open it in vanilla SQL Server 2008

You need the later version of SQL server, or to recreate your database in the earlier version.
 
Share this answer
 
Comments
sandeep nagabhairava 14-Jul-12 6:51am    
my 5!
SQL Server 2008 databases are version 655 whereas SQL Server 2008 R2 databases are 661.

You are trying to attach a 2008 R2 database (v661) to a 2008 instance which is not supported. Once the database has been upgraded to an 2008 R2 version, it cannot be downgraded.
You'll have to either upgrade your 2008 SP2 instance to R2, or you have to copy out the data in that database into an 2008 database (e.g. using the data migration wizard, or something equivalent).

Look at similar issues discussed here:
DB cannot be opened because it is version 655. This server supports version 612[^]
Version 661. This Server supports version 655[^]
Login problem in asp.net[^]
 
Share this answer
 
Comments
sandeep nagabhairava 14-Jul-12 6:51am    
my 5!

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