Re: Setting up Test database using back/restore part 2
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 08/03/04
- Next message: Martin Ha: "test"
- Previous message: Martin Ha: "Re: Help Crash!!"
- In reply to: Monty: "Setting up Test database using back/restore part 2"
- Next in thread: Martin Ha: "Re: Setting up Test database using back/restore part 2"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 3 Aug 2004 21:00:52 +0530
Hi,
NORECOVERY option - This options set the database to loading status and it
allows you to restiore the transaction log backup. If you do not have any
transaction logs to restore then it is not required to give NORECOVERY.
How to change the database to active status:- (execute below comamnd from
books online)
Restore database <dbname> with recovery
Thnks
Hari
MCDBA
"Monty" <montysl@nospam.hotmail.com> wrote in message
news:#FDe88WeEHA.3148@TK2MSFTNGP10.phx.gbl...
> Followed instructions as posted by MS and suggested by Andrew J. Kelly.
Used
> Restore Query with the MOVE option as required after first getting
filelist.
> All seemed to go very well but DB now shows up in Enterprise Manager with
a
> (Loading) suffix and seems to be doing so interminably. There are no items
> under the DB showing in the tree and multiple refreshes and stopping and
> starting the service have no effect.
> My newbie self has probably left out something but cannot figure out what.
> My Query was as follows:
>
> use master
> go
> RESTORE DATABASE MYDB
> FROM disk = 'G:\MYDB.bak'
> WITH NORECOVERY,
> MOVE 'InventorySQL_dat' TO 'C:\SQL_DATA\MYDB.mdf',
> MOVE 'InventorySQL_log' TO 'C:\SQL_DATA\MYDB_log.ldf'
> GO
>
> No errors, all seemed to be done correctly according to T-SQL. Data is
> there.What am I missing? TLogs? To further clarify, I was copying a SQL7
> user DB from a W2K server to a SQL2000 install on new hardware and W2K3
for
> testing only at this point. Needed to keep the SQL7 DB live without
> interruption.
>
> Thanks in advance.
>
>
- Next message: Martin Ha: "test"
- Previous message: Martin Ha: "Re: Help Crash!!"
- In reply to: Monty: "Setting up Test database using back/restore part 2"
- Next in thread: Martin Ha: "Re: Setting up Test database using back/restore part 2"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|