How To #12 – View object definition

Ever wondered how to script the object’s definition directly in T-SQL (like you do in SSMS with “Script [object] as CREATE To”?

It is very simple because, as you would expected, this information is contained within SQL Server and it is easily accessible.


Leave a Reply

Your email address will not be published. Required fields are marked *

sixteen + 1 =