SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How do I create a copy of a sql database?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Goalie35
Yak Posting Veteran

78 Posts

Posted - 02/02/2010 :  02:15:03  Show Profile  Reply with Quote
Hello.

I need to create a copy of my database (sql server 2005) that I can allow someone else to download off of my web server & install the copy on their local machine.

What do I need to do in order to do this?

Thanks.

Lumbago
Norsk Yak Master

Norway
3271 Posts

Posted - 02/02/2010 :  02:19:12  Show Profile  Reply with Quote
Take a full backup, zip it and link it from your website. If you don't want to share the data just create a script using the wizard in management studio: Right-click the database you want to publish -> Tasks -> Generate script

- Lumbago
If the facts don't fit the theory, change the facts. Albert Einstein
Go to Top of Page

Kristen
Test

United Kingdom
22403 Posts

Posted - 02/02/2010 :  02:38:52  Show Profile  Reply with Quote
You could also DETACH the database, Zip up the MDF and LDF files, and put that on your website. But my preference would be a Backup file too.

Make sure the "empty" database is not too big when you back it up - it will restore to the same initial size (100GB might be a surprise for the new owner!). (Same is true of DETACH method of course)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000