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)
 restore

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-10-31 : 07:53:06
glik writes "I am using SQL7
I have a data base called "agro" and I have several backups for this data base.
I want to create additional new database "agro1" with one of the backups that I have for "agro"
how can I do it ?

I tried to create new DB and then restore on of the agro_db_xxx.bak "from File" with "force restore over exiting"
but I am getting an error probably because I have a working data base "agro" or what? "

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-10-31 : 11:41:50
I'd have to see the command that you used to figure out what the problem is. It could be the path to the files. BTW, do the RESTORE in Query Analyzer:

RESTORE DATABASE agro
FROM DISK = 'E:\MSSQL\Backup\SomeBackupFile.BAK'
WITH REPLACE

You might need to use the WITH MOVE option if the MDF and LDF file need to be relocated. Let me know and I'll help you with that part of the command as well.

Tara
Go to Top of Page
   

- Advertisement -