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?

Improve company productivity with a Business Account.Sign Up

rjanowskyConnect With a Mentor Commented:
Have a look at this blog entry It might be of some help to you.
Easwaran ParamasivamAuthor Commented:
The script that you shared is not readable. Could you please provide the script in readable format?
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Anthony PerkinsCommented:
Why don't you contact Tim Chapman directly for the script?
Sorry, but it's not my script. Please contact Tim and ask for the plain sql script.
Easwaran ParamasivamAuthor Commented:
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.