0

I'm running SQL Server 2008, I want to create an entire copy of my Database, all my tables, views & stored procedures. How do I do that?

Ideally copy to a flat file or something like that then import on my new server.

1
  • Backup/restore, detach/attach, and all the flavors of replcation will do it... or did you only want the "database objects", without the actual data? Commented Jun 29, 2011 at 19:04

2 Answers 2

5

MSDN: Backup and Restore database ?

With Screenshots: see here

Sign up to request clarification or add additional context in comments.

Comments

0

Is this a one-time copy operation, or do you want it to be an ongoing replication of transactions to the destination server?

If it's the latter option, you can export and ship the transaction logs, which requires much less bandwidth per unit time than shipping a backup of the database. See this for details. I've had great success with this method using SQL Server 2008 R2 Express.

You can still use transaction logs if it's a one-time operation, but it may not be worth the up-front investment in time developing the scripts. In that case, see How to move databases between computers that are running SQL Server.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.