tags:

views:

626

answers:

3

Does anyone know of a reasonably priced tool that will create DDL statements to create a SQL Server database and appropriate Insert statements to recreate the data? I use the Red Gate tools to do database compares (including content compares) and this comes close (I could always compare with an empty schema) but I was wondering if there was a tool that others found useful that did this in one step.

+1  A: 

SQL Publishing Wizard

Saw Austin Solonen post this tool in a somewhat related thread. Express editions appearantly don't hove Import and Export.

Martijn Laarman
Thank you, this deserves the "answer" flag as well!
Mark Brittingham
+2  A: 

Have you had a look at SQL Publishing Wizard? It will create all the DDL statements you require for all database elements (tables, views, SPs, users etc).

If you're using SQL 2008, it comes built into the management studio. More info on 2008.

Ray Booysen
Non Express versions of the manager have been able to since SQL2000 ;)
Martijn Laarman
Thank you...this is exactly what I was looking for
Mark Brittingham
+1  A: 

The database publishing wizard that is included in Visual Studio 2008 performs this function.

It is also available via CodePlex as an add-on for prior versions of Visual Studio.

Portman
Wow, step away mid-response to go to the bathroom and look how badly you get beaten!
Portman
Thanks anyway Portman. It does seem like answers fly quickly on SO. Good answer though...I voted you up for being right anyway.
Mark Brittingham