Tuesday, November 27, 2012

View Object Definition in SQL Server

3 ways:
1. object_definition function
select * from object_definition(object_id('sys.indexes'))
2. sp_helptext
3. sys.system_sql_modules

No comments: