Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,

Iam having a table named as tblExample in my sqlserver database. Is there any method for getting the create statement of that particular table what I created...? If there means please tell me.

Thanks in advance.
Posted

right click on table name -> script table as -> Create TO
 
Share this answer
 
Comments
Venkat_C6 10-Feb-12 5:42am    
Ok thanks... Inspite of this method is there any query for getting this..?
Herman<T>.Instance 10-Feb-12 5:46am    
set profiler on and do your actions. Then you see which method was used.
sp_help [table name] should do it.

sp_help[^]

regards
Michel
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900