dbTalk Databases Forums  

restoring database in DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss restoring database in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sam
 
Posts: n/a

Default restoring database in DTS - 10-06-2003 , 10:26 PM






hello!
When I run a TSQL command to restore database, I got this
error:
"Restore database is terminating abnormally.
Exclusive access could not be obtained because the
database is in use".

My command for restoring is
'restore database aasam from aasam_backup'
I tried using the command below, but still doesn't work.
'alter database edtsam set single_user with rollback
immediate'.

Any advice? Pls help.

Rgds,
Sam.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: restoring database in DTS - 10-07-2003 , 12:25 AM






Make sure "YOU" are not the one in the DB.

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Sam" <samuel.soong (AT) sgprivasia (DOT) com> wrote

Quote:
hello!
When I run a TSQL command to restore database, I got this
error:
"Restore database is terminating abnormally.
Exclusive access could not be obtained because the
database is in use".

My command for restoring is
'restore database aasam from aasam_backup'
I tried using the command below, but still doesn't work.
'alter database edtsam set single_user with rollback
immediate'.

Any advice? Pls help.

Rgds,
Sam.



Reply With Quote
  #3  
Old   
Sanka
 
Posts: n/a

Default restoring database in DTS - 10-07-2003 , 12:34 AM



The following set of commands should work... We run
something similar to this...

ALTER DATABASE aasam SET single_user WITH ROLLBACK
immediate

RESTORE DATABASE aasam FROM DISK = 'C:\\aasam_backup'
WITH REPLACE

ALTER DATABASE aasam SET MULTI_USER


HTH.
Cheers,
Sanka


Quote:
-----Original Message-----
hello!
When I run a TSQL command to restore database, I got this
error:
"Restore database is terminating abnormally.
Exclusive access could not be obtained because the
database is in use".

My command for restoring is
'restore database aasam from aasam_backup'
I tried using the command below, but still doesn't work.
'alter database edtsam set single_user with rollback
immediate'.

Any advice? Pls help.

Rgds,
Sam.
.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.