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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Using Force Restore

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-26 : 09:51:09
Andy writes "I wrote in yesterday about a problem with restoring a database through T-SQL. I went ahead and did it through the GUI with a trace running, found what options it was using, and now it is working...
Just an FYI (although I am sure that you know) -

RESTORE DATABASE [DB_B]
FROM DISK = N'D:\test\DB_A.dat'
WITH FILE = 1, NOUNLOAD , STATS = 10, RECOVERY , REPLACE ,
MOVE N'DB_A' TO N'd:\Test\DB_B_Data.MDF',
MOVE N'DB_A_Log' TO N'd:\Test\DB_B_log.LDF'

Thanks!"
   

- Advertisement -