Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Script out - Create Table structure

$
0
0

Hi All,

If i rightclick a table and script out, i ll get the create table query as shown below:

Create Table Table_name

(

Column1 Datatype1,

Column2 Datatype2

)

Question : Is there any way to get this Create table statement using T-SQL Query..? And the T-SQL query should beversion independent..

I have used Sys.Sql_modules to get the create procedure, create trigger statement e.t.c. But was not able to get the Create statement of Table..

Please Help.



Viewing all articles
Browse latest Browse all 23857

Trending Articles