473,246 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

I can't restore the transaction I needed! Help!

Hi,

I have been trying to set up an automated restore process from prod to
backup server. First, I schedule the full database backup nightly,
transfer the backup file and restore it to the database on the backup
server. Meanwhile, I leave the database ready to accept transaction
log from the transaction log backup at noon daily.

And I had used different restore options to test out the transaction
that was being applied. And I couldn't get the transaction I am
supposed to. It seemed that none of the transaction has been restored.

Can somebody explain what I did wrong?

The following is the process I tried.

Test 1:
Step 1) Restore database from full backup with replace, standby option
RESTORE DATABASE TEST
FROM DISK = 'c:\restore\backupdb.bak'
WITH REPLACE,
STANDBY = 'e:\sql2000\undo\undo.ldf',
MOVE 'TESTData' TO 'E:\SQL2000\Data\TESTData.MDF',
MOVE 'TESTLog' TO 'D:\SQL2000\Logs\TESTLog.LDF',
MOVE 'TESTLog2' TO 'D:\SQL2000\Logs\TESTLog2.LDF',
MOVE 'TESTLog3' TO 'D:\SQL2000\Logs\TESTLog3.LDF'
WAITFOR DELAY '00:00:05'
GO

Step 2) Restore log and undo.ldf with standby option
RESTORE LOG TEST
FROM DISK = 'e:\restore\backuplog.bak'
WITH STANDBY = 'e:\sql2000\undo.ldf'
GO

Step 3) Restore log with recovery option and open database
RESTORE LOG TEST
FROM DISK='E:\RESTORE\BACKUPLOG.BAK' (the same backuplog.bak as Step
2)
WITH RECOVERY
GO

Test 2:
Step 1) Restore database from full backup with replace, standby option
RESTORE DATABASE TEST
FROM DISK = 'c:\restore\backupdb.bak'
WITH REPLACE,
STANDBY = 'e:\sql2000\undo\undo.ldf',
MOVE 'TESTData' TO 'E:\SQL2000\Data\TESTData.MDF',
MOVE 'TESTLog' TO 'D:\SQL2000\Logs\TESTLog.LDF',
MOVE 'TESTLog2' TO 'D:\SQL2000\Logs\TESTLog2.LDF',
MOVE 'TESTLog3' TO 'D:\SQL2000\Logs\TESTLog3.LDF'
WAITFOR DELAY '00:00:05'
GO

Step 2) Restore log and open database
RESTORE LOG TEST
FROM DISK = 'e:\restore\backuplog.bak'
WAITFOR DELAY '00:00:05'
GO

Test 3:
Step 1) Restore database from full backup with replace, norecovery
option
RESTORE DATABASE TEST
FROM DISK='E:\RESTORE\BACKUPdb.BAK'
WITH REPLACE,
MOVE 'TESTDATA' TO 'E:\SQL2000\DATA\TESTDATA.MDF',
MOVE 'TESTLOG' TO 'D:\SQL2000\LOGS\TESTLOG.LDF',
MOVE 'TESTLOG2' TO 'D:\SQL2000\LOGS\TESTLOG2.LDF',
MOVE 'TESTLOG3' TO 'D:\SQL2000\LOGS\TESTLOG3.LDF',
NORECOVERY

Step 2) Restore log with recovery option and open database
RESTORE LOG TEST
FROM DISK='E:\RESTORE\BACKUPLOG.BAK'
WITH RECOVERY

None of the transaction I backup during the day seems to be restored
and applied onto the database???? Am I missing something?

Thanks for any help!
Jul 20 '05 #1
0 2026

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Reuben Pearse | last post by:
Hi all, I've just converted the tables in a big database (approx 27 million records) from MyISAM to InnoDB. When I was using MyISAM I backed up the database by stopping MySQL and then copying...
4
by: xo55ox | last post by:
Hi, Currently, I am on SQL2000 SP3 and Windows 2003. I am trying to restore the full database backup and transaction log backup on the development server. The full database restore is not a...
0
by: barbara | last post by:
I am using this procedure from net for getting the restore script. It lists the latest full backup file name and logs after that point. Is there any way to modify this script to take either date...
1
by: Terri | last post by:
MSSQL 2000 SP3A I'm trying to restore a database with the following commands. restore database Test from disk = 'D:\backups\9pm.bak' WITH RECOVERY, move 'DEV_Data' to 'c:\Program...
3
by: t2581 | last post by:
Hi , I run restore with rollforward In job in output, last commited transaction time less then backup image time Is it normal ? RESTORE DATABASE PRICE_V8 FROM "E:\BACKUP" TAKEN AT...
5
by: patrick | last post by:
Mysql 4.1.15 on Win2k. Using InnoDB. Using the mysql administrator gui to create a backup, everything goes fine, and restores quickly. Using the command line: mysqldump %dbname%...
0
by: raj.raghavan | last post by:
Hi, I have a database were all the indexes are in a seperate filegroup a few large tables are in a seperate filegroup. We take backup at different times and I have backup of primary, two filegroup...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
13
by: danceli | last post by:
I have two servers, using SQL server 2000. I was asked for implementing hourly Backup 3 databases in one server and restore those databases to another server. Could anyone give me the detailed...
3
by: Bill E. | last post by:
I'm trying to restore a database backed up a production machine onto my development machine. I don't want to restore the transaction logs (there are two) because they are far too large and are...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.