Dump Microsoft SQL Server database to an SQL script

Posted by Matt Sheppard on Server Fault See other posts from Server Fault or by Matt Sheppard
Published on 2008-08-25T01:47:52Z Indexed on 2010/06/02 22:55 UTC
Read the original article Hit count: 277

Filed under:
|
|

Is there any way to export a Microsoft SQL Server database to an sql script?

I'm looking for something which behaves similarly to mysqldump, taking a database name, and producing a single script which will recreate all the tables, stored procedures, reinsert all the data etc.

I've seen http://vyaskn.tripod.com/code.htm#inserts, but I ideally want something to recreate everything (not just the data) which works in a single step to produce the final script.

© Server Fault or respective owner

Related posts about sql

Related posts about sql-server