How to get CREATE table script using TSQL

I would like to get Create table scripts for given set of tables in my Database using TSQL. I know how to generate using SSMS > Table > Script table as > Create. But I would like to get the script using TSQL for an automated process. Please do assist.
LVL 16
Easwaran ParamasivamAsked:
Who is Participating?
 
rjanowskyCommented:
Have a look at this blog entry http://www.techrepublic.com/blog/datacenter/script-table-definitions-using-tsql/431. It might be of some help to you.
0
 
Easwaran ParamasivamAuthor Commented:
The script that you shared is not readable. Could you please provide the script in readable format?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Anthony PerkinsCommented:
Why don't you contact Tim Chapman directly for the script?
0
 
rjanowskyCommented:
Sorry, but it's not my script. Please contact Tim and ask for the plain sql script.
0
 
Easwaran ParamasivamAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.