all groups > sql server programming > july 2005 >
You're in the

sql server programming

group:

Table Creation Text


Re: Table Creation Text Narayana Vyas Kondreddi
7/30/2005 12:00:00 AM
sql server programming:
You could get CREATE TABLE script using Enterprise Manager's scripting
functionality.
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @ http://vyaskn.tripod.com/


[quoted text, click to view]

Re: Table Creation Text John Bell
7/30/2005 12:00:00 AM
Hi

Check out SQL-DMO in books online and the sample.

This may also help http://www.nigelrivett.net/DMOScriptAllDatabases.html

John

[quoted text, click to view]

Table Creation Text Zachary Hartnett
7/30/2005 11:59:11 AM
I know how to get the text for various database objects (like stored
procedures) using sp_helptext or through direct access to the syscomments
table. One thing I have not been able to find is the text associated with
creating a table.

Are programs that dynamically display create and alter text for tables in a
database dynamically recreating the text based upon the names and existance
of columns, defaults, triggers, etc. or is there a way to see the actual
text used to create a table?

Thanks in advance for any advice you might have!

AddThis Social Bookmark Button