Solved

Reverse engineer and denerate DDLs from SQL Server 2008  objects

Posted on 2010-11-19
3
647 Views
Last Modified: 2012-05-10
Are there any stored procedures or system views in SQL server 2008  that provide a way for you to generate DDL for SQL Server objects? sp_help or manually generating DDL from right clicking the tables is not just helping.  
0
Comment
Question by:almask-mn
3 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 34176138
Yeah, so that is one of the main pains for me...that SSMS doesn't provide OBJECT_DEFINITION functionality for tables.  

I wrote an article on how you can script this out...hope it helps.

http://blogs.techrepublic.com.com/datacenter/?p=431
0
 
LVL 2

Expert Comment

by:vasureddym
ID: 34188342
i have written a SP that loops through all the objects and fire the sp_help_text and give all the DDLs at the end. please let me know if that helps.
0
 

Author Closing Comment

by:almask-mn
ID: 34201545
Thanks for your help.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question