User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 422,389 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,745 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 1513 | Replies: 5
Reply
Join Date: Mar 2008
Posts: 2
Reputation: -mk- is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
-mk- -mk- is offline Offline
Newbie Poster

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

  #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 6:04 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 762
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 59
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

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

  #2  
Mar 8th, 2008
Manually you can stop the server copy the data files and then restart the server..
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,584
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 
Rep Power: 11
Solved Threads: 235
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 ?

  #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  
Join Date: Nov 2007
Location: � Jogja �
Posts: 2,584
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 
Rep Power: 11
Solved Threads: 235
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 ?

  #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  
Join Date: Mar 2008
Posts: 2
Reputation: -mk- is an unknown quantity at this point 
Rep Power: 0
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 ?

  #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 8:21 am.
Reply With Quote  
Join Date: Dec 2007
Location: Raleigh, NC
Posts: 31
Reputation: AaronASterling is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
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 ?

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


EXEC sp_addumpdevice 'DISK', 'MyBackupToFTPland', 'DirectoryYouCanFTPFrom\backup.bak'

BACKUP DATABASE yourdatabase
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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 8:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC