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 |
|
vdavid70
Yak Posting Veteran
67 Posts |
Posted - 2005-08-15 : 07:32:29
|
| I am trying to restore a database using sql server 2000 on a windows 2000 server. I am trying to restrict access but each time i execute the command ALTER DATABASE clarity_production SET RESTRICTED_USER WITH ROLLBACK IMMEDIATEorALTER DATABASE clarity_production SET SINGLE_USER WITH ROLLBACK IMMEDIATEor exec sp_dboption, true etc i keep getting the error Server: Msg 3101, Level 16, State 1, Line 3Exclusive access could not be obtained because the database is in use.Server: Msg 3013, Level 16, State 1, Line 3RESTORE DATABASE is terminating abnormally.Now the question obviously is how do i overcome this hurdle. |
|
|
vdavid70
Yak Posting Veteran
67 Posts |
Posted - 2005-08-15 : 07:43:36
|
| On the same database when i try to do the restore from query analyzer i get the following error logical file 'Everything_Data' is not part of the database everything use restore filelistonly to list the logical file nmaes. I have executed this restore filelistonly command and i am getting exactly 'Everything_Data' as the logicall file name, what am i missing here please help. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-08-16 : 02:45:33
|
| You got first errot because you tried that query when QA pointed to the same DBYou need to use with Move option for the second problemSee Restore Database in BOLMadhivananFailing to plan is Planning to fail |
 |
|
|
vdavid70
Yak Posting Veteran
67 Posts |
Posted - 2005-08-16 : 09:58:29
|
| Thanks,The second error ('On the same database when i try to do the restore from query analyzer i get the following error logical file 'Everything_Data' is not part of the database everything use restore filelistonly to list the logical file nmaes. I have executed this restore filelistonly command and i am getting exactly 'Everything_Data' as the logicall file name, what am i missing here please help.')i meant to write was from Enterprise manager and not Query analyzer. |
 |
|
|
|
|
|