GetViewDefinition: Difference between revisions

From SMTX Wiki
Jump to navigation Jump to search
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..."
 
m 1 revision imported
 
(No difference)

Latest revision as of 21:44, 25 May 2020

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'