I have a database and want to attach it in Server 2008 R2 with this script
:
use master
go
CREATE DATABASE Database1
ON (FILENAME = 'E:\proj\App_Data\Database1.mdf'),
(FILENAME = 'E:\proj\App_Data\Database1_log.ldf')
FOR ATTACH;
GO
However, I am encountering these error
:
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'Database1'. CREATE DATABASE is aborted.Msg 1813, Level 16, State 2, Line 1
Could not open new database 'Database1'. CREATE DATABASE is aborted.Msg 948, Level 20, State 1, Line 1
The database 'Database1' cannot be opened because it is version 706. This server supports version 661 and earlier. A downgrade path is not supported.