I need to copy my entire SQL Server 2008 database including the schema and all data verbatim from one computer to another.
How do I do that?
|
I need to copy my entire SQL Server 2008 database including the schema and all data verbatim from one computer to another. How do I do that? | |||
|
feedback
|
|
Export the database from the original server and then import it into the new one. To export right click over the name then Tasks > Backup.... If you make sure you select the "Backup type" as Full and "Backup component" as Database this should copy everything. To import right click again then Tasks > Restore > Database.... | |||||
feedback
|
|
If you can take it offline for a while, it is quicker to detach it, copy the mdf and ldf files, and then just re-attach it. | |||||||
feedback
|
|
This question on Stackoverflow might be of some use to you. How can I export data from SQL Server. Hope this helps some. | |||
|
feedback
|
|
See this MS knowledgebase article: How to move databases between computers that are running SQL Server | ||||
|
feedback
|