0

enter image description hereI´m trying to open sql server 2005 database with sql server management studio but i can´t. I have done changes in that database with visual studio 2010. Is there any solution to open that database?enter image description here

4

3 回答 3

2

The problem was that i connect to db in local mode, selecting mdf file manually and with windows identification. I connect with server mode, with db user and it works perfectly. thanks!!

于 2013-05-23T10:40:26.480 回答
1

It looks a bit like you've got the Visual Studio holding it open in single use mode.

If you restart your machine, and (without opening visual studio) try to look inside the database using SQL Server Management Studio, that might fix your issue.

UPDATE: It looks like the database has been upgraded to SQL2008 as you surmised. You can download SQL2008 express and export data from your 2008 database to a new 2005 file (you'll need to do that from SQL2008 express)

Forum link describing same problem.

于 2013-05-23T10:13:12.277 回答
1

If the database was set into single user mode like this

ALTER DATABASE YOUR_DB SET SINGLE_USER WITH ROLLBACK IMMEDIATE

You can set it back to multi-user mode:

ALTER DATABASE YOUR_DB SET MULTI_USER
于 2013-05-23T10:42:58.180 回答