I've got two databases showing in the studio tree, but they are marked 6.5 compatible and cannot be expanded. Worse, there is no way (apparently) in the menu of either database to remove, delete or detach them.
How can I get these out of the system?
Thanks in advance.
randyv
What about using the TSQL statement for dropping / detaching the databases ? (DROP DATABASE / sp_detach)HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
No, that doesn't work because it is grayed out... It finally dawned on me that since I could not take any action directly on the database due to compatibility problems, but that the database was from 2000, there was no reason the level could not be increased.
To make sure I had no problem with the application, this is what I did. I backed up the database on the 2000 server, then restored it as a different database. Then I changed the compatibility level on that restored database to 80.
Next I backed that databased up and copied the .bak file to the other server running 2005.
Then I restored that .bak file as the existing 6.5 level database with a restore over existing database flag turned on.
Presto ! Problem solved. It is taking the long way around the problem, but there is no other option open, apparently.
|||Try to run this transact sql script against your database:
USE databaseName
GO
EXECUTE sp_dbcmptlevel databaseName , 90
GO
EXEC sp_updatestats
GO
No comments:
Post a Comment