Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I back up my DB to a zip drive or another disk?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I am new to sql server. I could not find a way of backing up my db to a zip disk. I am doing a project witha vb app to front end a sql server db. I may have to present this at a forum. How do i copy my db files to removable media like a zip drive? Also what are *.mdf files If i do manage to copy the db to another zip drive (small enough for that) , how do I start SQL server on the other machine so that t can open the db i copied on a zip disk? Please help.Thanks. - jay.
 
You can run sp_detach_db (See SQL BOL) to detach the DB from SQL Server. Then copy the .mdf and .ldf files for your server to the zip drive. On the other machine, copy the fiules to the proper SQL Server data location and run sp_attach_db. You'll also need to run sp_attach_db on the original SQL server to reattach the database.

SQL Books Online has complete documentation of detaching and attaching. Terry
_____________________________________
Man's mind stretched to a new idea never goes back to its original dimensions. - Oliver Wendell Holmes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top