Home > Archive > MS SQL Server > October 2006 > Restore to a Different Database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Restore to a Different Database
TRD

2006-10-24, 6:29 pm

I have backed up our production database to a file and would like to restore
it to a test database I created. This seems very simple but I seem to be
missing something. I am using query analyzer. Could someone please assist
me?


TIA
TR


Tibor Karaszi

2006-10-24, 6:29 pm

1. You don't have to create the database before RESTORE. The restore process will do it for you.

Pay special care of the MOVE and REPLACE options of the RESTORE command.

In case you don't succeed with the restore, please post the RESTORE command and the error message(s)
returned by the database engine.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www. solidqualitylearning
.com/



"TRD" <tdejohnx2@hotmail.com> wrote in message news:%23GZjg512GHA.1548@TK2MSFTNGP02.phx.gbl...
>I have backed up our production database to a file and would like to restore it to a test database
>I created. This seems very simple but I seem to be missing something. I am using query analyzer.
>Could someone please assist me?
>
>
> TIA
> TR
>


Paul

2006-10-24, 6:29 pm

just restore the database from the backup file as suggested. First delete
the test database and then make sure you name the new database and select
from Device as it will then allow you to browse to your backup file from the
source database. Just right click from enterprise manager and select all
tasks/restore database.

--
Paul G
Software engineer.


"TRD" wrote:

> I have backed up our production database to a file and would like to restore
> it to a test database I created. This seems very simple but I seem to be
> missing something. I am using query analyzer. Could someone please assist
> me?
>
>
> TIA
> TR
>
>
>

TRD

2006-10-24, 6:29 pm

Thanks for the help.


"Paul" <Paul@discussions.microsoft.com> wrote in message
news:3379D7D1-01CA-4617-A54B- EEBFF56631AB@microso
ft.com...[color=darkred]
> just restore the database from the backup file as suggested. First delete
> the test database and then make sure you name the new database and select
> from Device as it will then allow you to browse to your backup file from
> the
> source database. Just right click from enterprise manager and select all
> tasks/restore database.
>
> --
> Paul G
> Software engineer.
>
>
> "TRD" wrote:
>


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com