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)
 Nigel's s_RestoreLatestBackup script

Author  Topic 

Kristen
Test

22859 Posts

Posted - 2006-12-07 : 04:53:10
Nigel:

In

http://www.nigelrivett.net/SQLAdmin/s_RestoreLatestBackup.html

you DROP the target database first.

IME creating a new database, and pre-initialising it, takes a while. Was there a reason for not leaving the database in-place?

Kristen

nr
SQLTeam MVY

12543 Posts

Posted - 2006-12-07 : 12:27:50
Maybe in case the files needed moving?
I think if there is a problem with the database a drop aborted more quickly than a restore.
Think it was something added to solve a problem.
No reason not to take that bit out if it's not needed though.


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-12-07 : 14:07:49
Useful points, thanks Nigel
Go to Top of Page
   

- Advertisement -