Solved

Backup SQL Server 2000 database on one server remotely from another server.

Posted on 2007-04-05
5
418 Views
Last Modified: 2008-01-09
I have two SQL Servers 2000: ServerA and ServerB. They both linked to each other. On ServerA I created a Stored Procedure spBackupDBOnServerA that backups DB locally; this DB is 16GB in size. On ServerB I created a job that executes spBackupDBOnServerA on ServerA; this job fails with this error:
Executed as user: domain\user_name. Could not relay results of procedure 'spBackupDBOnServerA' from remote server 'ServerA'. [SQLSTATE 42000] (Error 7221)   [SQLSTATE 01000] (Error 7312).  The step failed.
I've searched on the internet, but had no luck.
Any help appreciated.

Thanks.
0
Comment
Question by:zilll
5 Comments
 
LVL 11

Expert Comment

by:Ved Prakash Agrawal
ID: 18857935
Create folder on the other server and share that folder and give for Read and write permission.

and specify the shared folder path in you backup location...

for ex..
BACKUP DATABASE myDatabase to DISK='\\myRemoteServer\Backup\myDatabaseBackup.bak'
0
 
LVL 16

Accepted Solution

by:
rboyd56 earned 250 total points
ID: 18857936
Open up server properties in your Enterprise Manager,
Go to Connections tab,
Inrease the number in Query time-out field in Remote Server Connections area
0
 
LVL 8

Expert Comment

by:MOA81
ID: 18857952
Dear zilll

I know that SQL Server 2000 can only take backup locally

to take a back on a remote server this can be done in SQL Server 2005

I guess this is your case
0
 
LVL 11

Expert Comment

by:Ved Prakash Agrawal
ID: 18857964
Hi zilll,
tell me how you are executing this SP "spBackupDBOnServerA" from ServerB to ServerA?
can you post sample code...?




0
 

Author Comment

by:zilll
ID: 18858034
this is the SP which does the actual backup:
BACKUP DATABASE MyDB TO DISK = 'E:\MSSQL\BACKUP\MyDB.BAK' WITH INIT

this is the code how I execute this SP from ServerB in a job:
exec ServerA.DB2.dbo.spBackupDBOnServerA
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question