Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 10th, 2006, 09:25 AM
Authorized User
Join Date: Jan 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy from one machine to another machine

My application run at my own machine which access the SQL Server 2000 which is in another machine. I take backup of that database and the backup file(.bak file) created at c drive of that machine.
Now i want to copy that bak file from that machine to my machine.
I know IP Address of both the machines.
Can any one can help on this topic?

Old January 12th, 2006, 10:41 AM
Authorized User
Join Date: Sep 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Lalit_Pratihari


Could you please elaborate your problem a lit bit...

You want to copy the .bak file from client application or you want to write a SP to handle the copy.

Old January 12th, 2006, 03:13 PM
Friend of Wrox
Join Date: Dec 2005
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post

Run this on your machine
XCopy \\\c$\YourSQL.bak c:\SQLDestinationDirectory

or run this on the server in a job step just after the backup step

XCopy \\\c$\YourSQL.bak \\\c$\SQLDestinationDirectory

If you want to restore it on your new server then you will need to execute sql statements against the SQL Server instance on your machine. This could be done by blind timing i.e. job 1 on the server runs at 10:25 AM and finishes by 10:35 AM Job 2 on your PC runs at 10:45 AM.

Or you could use another job step on the Server to execute the restore command against your pc by using osql

David Lundell
Principal Consultant and Trainer

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
copy file or folder to remote machine using nant kalpana2009 NAnt 1 October 9th, 2007 09:27 AM
epoxy machine Alvinkiang Pro VB 6 2 May 6th, 2006 09:09 AM
machine.config sillygiu@hotmail.com BOOK: ASP.NET Website Programming Problem-Design-Solution 7 August 24th, 2004 07:21 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.