Remote Proc Restore Fails

From: Terry (dontsendmecrud_at_hotmail.com)
Date: 07/08/04


Date: 8 Jul 2004 06:35:52 -0700

I have set up a job to implement simple Log Shipping for SQL Server
2000. I have added a link on my primary server so I can execute a
remote stored proc on the standby server from the SQL Agent job on the
primary. The remote procedure restores the backup copied over from the
primary server.

When the remote procedure executes, the job reports success, but the
standby server is left in the Loading state or Loading/Suspect on some
executions. The procedure is:

RESTORE DATABASE MPR
FROM DISK = N'\\MPR01\SQLLogShip\MPR_backup_device.bak'
WITH REPLACE, STANDBY = N'\\MPR01\SQLLogShip\undo_MPR_Data.ldf',
MOVE N'MPR_Data' TO N'E:\SQLData\MSSQL\Data\MPR_Data.mdf',
MOVE N'MPR_Index' TO N'D:\SQLIndex\MPR_Index.ndf',
MOVE N'MPR_Log1' TO N'E:\SQLData\MSSQL\Data\MPR_Log1.ldf',
MOVE N'MPR_Log2' TO N'E:\SQLData\MSSQL\Data\MPR_Log2.ldf',
STATS = 5

When I execute the procedure on the standby using SQL Query Analyzer
after a failure, it restores successfully! It only fails when it runs
from the job on the primary server. But the job history says it was
successful.

Can anyone help me troubleshoot this problem? I don't know where to
begin.

Terry



Relevant Pages

  • SPN Error
    ... We have a SQL 2000 cluster that is running on two Windows 2003 Enterprise ... then when you go to fail it back to the primary node SQL spits an SPN ... primary server, and then the SQL server instance as well as all other ...
    (microsoft.public.sqlserver.clustering)
  • Re: HACMP remove vpath/hdisks on standby server
    ... I need some advice regarding removing the a pv on a standby server. ... >> group with HACMP closed down, I can't close HACMP as I cannot get down ... > the disk from your primary server and not on your stand by your ... This operation update the ODM on standby machine by reading VGDA/VGSA ...
    (comp.unix.aix)
  • HACMP remove vpath/hdisks on standby server
    ... I need some advice regarding removing the a pv on a standby server. ... The volume group on the primary server consists of 3 vpaths with 2 ... one of the vpath devices completely which means it can be removed from ...
    (comp.unix.aix)
  • Re: HACMP remove vpath/hdisks on standby server
    ... I need some advice regarding removing the a pv on a standby server. ... > group with HACMP closed down, I can't close HACMP as I cannot get down ... > and I don't know when we will be able to reboot this server. ... the disk from your primary server and not on your stand by your ...
    (comp.unix.aix)
  • Re: Log Shipping
    ... "John Bandettini" wrote in message ... > You can restore your standby server in exactly the same way as your ... Your last full backup and then apply any transaction logs ... are from your primary server, so you can restart with your latest full ...
    (microsoft.public.sqlserver.server)