How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

Thread Solved

Join Date: Mar 2008
Posts: 10
Reputation: -mk- is an unknown quantity at this point 
Solved Threads: 0
-mk- -mk- is offline Offline
Newbie Poster

How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

 
0
  #1
Mar 7th, 2008
Hi, currently I have a shared web hosting with MS SQL server 2000 database.

I have already implemented the database, with all the data inside the database, on the server.

Now I wish to copy the whole database (.mdf) down to my PC, in case I wanna change hosting or in case the server broke down, and keep it as a safe backup.

I already created a backup of it, the .bak file, but it is all stored in the web hosting database server.

How can I actually copy the whole thing down to my pc ?

I am using Microsoft SQL Server Management Studio Express.

Thanks alot..
Last edited by -mk-; Mar 7th, 2008 at 7:04 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

 
0
  #2
Mar 8th, 2008
Manually you can stop the server copy the data files and then restart the server..
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

 
0
  #3
Mar 8th, 2008
Originally Posted by RamyMahrous View Post
Manually you can stop the server copy the data files and then restart the server..
yeah, i do this way if i want to backup my database. i think this is a simple way.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

 
0
  #4
Mar 8th, 2008
and don't forget to stop a server for a while when you want to backup data cause it will give you an error.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 10
Reputation: -mk- is an unknown quantity at this point 
Solved Threads: 0
-mk- -mk- is offline Offline
Newbie Poster

Re: How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

 
0
  #5
Mar 9th, 2008
sorry but it is a shared-hosting service. I don't have the access to the server files and such.
Only able to connect to their SQL Server.

FTP accounts only able to access db and wwwroot folders.
Last edited by -mk-; Mar 9th, 2008 at 9:21 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 31
Reputation: AaronASterling is an unknown quantity at this point 
Solved Threads: 5
AaronASterling's Avatar
AaronASterling AaronASterling is offline Offline
Light Poster

Re: How do I Backup the MS SQL server 2000 database file (mdf) to my local PC ?

 
0
  #6
Mar 9th, 2008
Give this a shot from within sqlcmd or osql....


  1. EXEC sp_addumpdevice 'DISK', 'MyBackupToFTPland', 'DirectoryYouCanFTPFrom\backup.bak'
  2.  
  3. BACKUP DATABASE yourdatabase
  4. TO MyBackupToFTPLand

Then you should be able to FTP it...assuming of course that SQL Server has write access to someplace that you have FTP read access too.... could get complicated. Check the BOL for more options. the DISK keyword is necessary but you should be able to get away without the other wacky names i've chosen. hope that helps
Aaron Sterling
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 3588 | Replies: 5
Thread Tools Search this Thread



Tag cloud for MS SQL
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC