Solved

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

Posted on 2007-04-05
5
433 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Title # Comments Views Activity
SQL Query (lookup) 8 64
T-SQL: Wrong Result 7 38
When are cursors useful? 8 60
sql server query 9 26
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

732 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