Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 find the create statement for a table

Author  Topic 

a_r_satish
Yak Posting Veteran

84 Posts

Posted - 2006-02-17 : 01:42:54
Hi,

Though simple, I need to find the create statement for a table in the same format as sp_helptext displays for the procedure.

In the sp_help i am unable to find the references/ foreign key details. Is there any built in solution for this???

Thanks in advance.


Regards,
satish.r

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-17 : 01:47:30
It is not available via sp_helptext. However you can use Enterprise Manager, select your table and right click to generate sql script

----------------------------------
'KH'

Time is always against us
Go to Top of Page

shallu1_gupta
Constraint Violating Yak Guru

394 Posts

Posted - 2006-02-17 : 01:50:58
Hi,
You can use Enterprise Manager to generate a script for the Table.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-17 : 02:12:31
You can try this
http://sqlteam.com/forums/topic.asp?TOPIC_ID=53007

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -