GetViewDefinition

From SMTX Wiki
Revision as of 11:44, 19 December 2016 by Smtxwiki (talk | contribs) (Created page with "Use the query below to see the view definition through an SQL command select definition from sys.objects o join sys.sql_modules m on m.object_id = o.object_id whe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Use the query below to see the view definition through an SQL command

 select definition
 from sys.objects     o
 join sys.sql_modules m on m.object_id = o.object_id
 where o.object_id = object_id( 'dbo.TicketHistory')
 and o.type      = 'V'