Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Backup remote database

 
   Database Forums (Home) -> MSEQ RSS
Next:  Why ExecuteNonQuery() cannot execute UPDATE comma..  
Author Message
Jojamie

External


Since: May 15, 2007
Posts: 1



(Msg. 1) Posted: Tue May 15, 2007 8:24 am
Post subject: Backup remote database
Archived from groups: microsoft>public>sqlserver>mseq (more info?)

Hi All

I am trying to write a SQL statement to use in an automated process which
will run on a SQL 2005 server and backup a remote database from another SQL
server.
From there I am trying to then restore this remote database backup into the
local "Copy" database.
For some reason everytime I run the Backup part of the SQL query it fails
with a connection refused error.

Could someone provide me with a SQL statement that would backup this remote
database.

Cheers.

 >> Stay informed about: Backup remote database 
Back to top
Login to vote
JPD

External


Since: Jun 19, 2007
Posts: 18



(Msg. 2) Posted: Tue Jul 17, 2007 10:57 am
Post subject: Re: Backup remote database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

The answer is quite simple really. You cannot backup a database from a
remote server. You need to be connected to it directly. The client
app, whether it's Management Studio, sqlcmd or a 3rd party app, can be
on a remote machine but it must make a connection directly to the server
conatining the database you want to backup.

If I misunderstood what you are trying to do please let me know.

Jonathan



Jojamie wrote:
> Hi All
>
> I am trying to write a SQL statement to use in an automated process which
> will run on a SQL 2005 server and backup a remote database from another SQL
> server.
> From there I am trying to then restore this remote database backup into the
> local "Copy" database.
> For some reason everytime I run the Backup part of the SQL query it fails
> with a connection refused error.
>
> Could someone provide me with a SQL statement that would backup this remote
> database.
>
> Cheers.

 >> Stay informed about: Backup remote database 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
backup table to another table in database - I need to create a new table with the same columns using a select from another table. I cannot find the syntax. Does anyone know if this can be done in SQL 2k? -- Danne

Query remote server - hi, i have 2 sql2005 servers. i am traying to drop , insert from one server to another, and when i am trying to run simple query , i getting an error: "Msg 18452, Level 14, State 1, Line 1 Login failed for user ''. The user is not associated wit...

How to call talbe/SP from Linked server with out database .. - Dear Friends, Usually we call tabal and SP like given below. select * from [linkedserver].[database].[dbo].[TableName] EXEC [linkedserver].[database].[dbo].usp_storedprocedure but I like to all with out database and username. I tryed...

EXEC (select... ) problem Help! - How can I get this to work? declare @WkEmpID declare @sql varchar(1000) set @sql = 'select distinct @WkEmpID = EmpID from Employee' exec (@sql) Now this is a simplified version of a more comples query which is forcing me to use this method rather than...

Query returning multiple rows - Hi, I have a query that returns back rows that have multiple entries for a given UniqueID. I want the query to be expanded so that it then only returns 1 of the multiple rows based on the maximum date. Thefore, my return set looks like this: ..
   Database Forums (Home) -> MSEQ All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]