Hello, I have a live database and a test database on my sql 2000. I need to
restore a backup of my live database to my test database. I want to make sure
I have all the settings correct in Enterprise manager. This is what I have
set.
1. I right clicked on my test database and went to restore.
2. In the restore database window, I have Restore as database set to the
name of my test database
3. I have Parameters: Show backups of database: set to my live database.
4. At the bottom of the screen I have the restore checkbox checked for
backup set of my live database backup.
5. If I go in to the options tab I have "Force restore over existing
database" checked.
6. I have my original file name set to the live database and my restore as
set to the test database.
In theory, will this take a backup of my live database and restore it over
my test database? I want to be completely sure that it doesn't affect my live
database at all. Thank you
Starfish,
I would do it this way:
0) Backup test database, just in case,
1) Drop test database.
2) Right click the live database and choose restore database,
3) Pick live database backup you wish to restore
4) Type name of test database in "Restore as database:" field
5) Click on Options tab. This will change the name of the database files to
match your test database name.
6) Click OK.
Now when the test database is created by the restore:
a) The master..sysdatabases record will have the timestamp when you made
your copy, if anyone ever asks, and
b) Since you did not check the "Force restore over existing database"
checkbox, you cannot accidentally mess up your live database.
I do this all the time.

Signature
Thank you,
Daniel Jameson
SQL Server DBA
Children's Oncology Group
www.childrensoncologygroup.org
> Hello, I have a live database and a test database on my sql 2000. I need
> to
[quoted text clipped - 18 lines]
> live
> database at all. Thank you