Click here to Skip to main content
13,898,041 members
Rate this:
 
Please Sign up or sign in to vote.
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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
   
Comments
sandeep nagabhairava 14-Jul-12 6:51am
   
my 5!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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[^]
   
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190306.1 | Last Updated 14 Jul 2012
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100