Sample Header Ad - 728x90

Script to get definitions of table types and Sequences

1 vote
2 answers
519 views
I need to get the definition of some objects in the SQL server. I got the definitions of stored procedures, functions, views and triggers from sys.sql_modules. But, I don't know how to get that of user-defined table types and of sequences. I am trying to create this in another database and automate this process. Does anyone know how to get the definition of table types and sequences?
Asked by Viz Krishna (109 rep)
Nov 25, 2022, 09:11 AM
Last activity: Jun 3, 2025, 02:54 PM