Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 10th, 2006, 09:25 AM
Authorized User
Join Date: Jan 2006
Location: Kolkata, West Bengal, India.
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?

Reply With Quote
  #2 (permalink)  
Old January 12th, 2006, 10:41 AM
Authorized User
Join Date: Sep 2004
Location: Delhi, Delhi, India.
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.

Reply With Quote
  #3 (permalink)  
Old January 12th, 2006, 03:13 PM
Friend of Wrox
Join Date: Dec 2005
Location: , AZ, .
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:38 AM.

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