[sql-server] SQL Server: Attach incorrect version 661

When trying to attach a database file to:

Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64) Sep 16 2010 19:43:16 <X64> (Build 7600: )

I get this error message:

The database cannot be opened because it is version 661. This server supports version 662 and earlier. A downgrade path is not supported.

Any idea why? and how to solve it?

This question is related to sql-server

The answer is


To clarify, a database created under SQL Server 2008 R2 was being opened in an instance of SQL Server 2008 (the version prior to R2). The solution for me was to simply perform an upgrade installation of SQL Server 2008 R2. I can only speak for the Express edition, but it worked.

Oddly, though, the Web Platform Installer indicated that I had Express R2 installed. The better way to tell is to ask the database server itself:

SELECT @@VERSION