Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Dump Microsoft SQL Server database to an SQL script

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.

Thanks in advance

share|improve this question

marked as duplicate by Ben Pilbrow, Iain, sysadmin1138 Feb 20 '11 at 17:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 0 down vote accepted

this is a duplicate: Dump Microsoft SQL Server database to an SQL script

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.