I´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?
3 回答
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!!
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)
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