Solved

Copying an SQL datatbase

Posted on 2013-05-24
4
151 Views
Last Modified: 2013-05-24
Dear Experts,

This must be very simple I just want to know the beast way to do it!

I want to copy the sql 2008 database from my dev PC to my server.

Both the dev PC and Server have sql 2008.

What I usually do is detach database copy to the server and attach.

Regards 1752.
0
Comment
Question by:1752
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39193883
please refer below article

http://support.microsoft.com/kb/314546
0
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 500 total points
ID: 39193886
Firstly read this:

http://stackoverflow.com/questions/610113/sql-server-backup-restore-v-s-detach-attach

Secondly, I personally would do a backup and restore.

Backup the database on the main system, zip the backup and copy to the second machine. In SQL Management Studio, create a new target database if needed and then simply restore the database over the top.
0
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39193888
0
 

Author Closing Comment

by:1752
ID: 39193902
Thank You.

I will backup and restore.

Regards
1752
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question