Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
olibara
Yak Posting Veteran
94 Posts |
Posted - 2011-10-13 : 03:07:15
|
HelloI'm trying to restore an sql 2008 databaseBut is says tha the database in in useSo I try to set the database off lineAnd it runs an infinite loopHowever this is a 'test' database and normaly there are no user and no activity on itWhat can be the problem what can I do to figure out what's hapenned ?Thanks for any help |
|
Kristen
Test
22859 Posts |
Posted - 2011-10-13 : 03:22:38
|
Are you connected to the database itself? Try doing it from MASTERUSE masterGOALTER DATABASE MyDatabaseName SET OFFLINE WITH ROLLBACK IMMEDIATEGO... restore ... |
|
|
olibara
Yak Posting Veteran
94 Posts |
Posted - 2011-10-13 : 04:08:35
|
Thank you KristenI've tryed your suggestionHere is the resulting message quote: Msg 5061, Level 16, State 1, Line 1ALTER DATABASE failed because a lock could not be placed on database 'TouchBeta'. Try again later.Msg 5069, Level 16, State 1, Line 1ALTER DATABASE statement failed.
|
|
|
olibara
Yak Posting Veteran
94 Posts |
Posted - 2011-10-13 : 04:27:54
|
HelloFinaly after closing et restarting SSMS it worksAnd the back-up also nowThank you |
|
|
Kristen
Test
22859 Posts |
Posted - 2011-10-13 : 07:04:32
|
You might want to check if there is a newer version of Tools (including SSMS) available? |
|
|
|
|
|