Advertisement
trietnv

viewdetail

Sep 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. select definition
  2. from sys.objects o
  3. join sys.sql_modules m on m.object_id = o.object_id
  4. where o.type = 'V'
  5.  
  6. select *
  7. FROM sys.parameters
  8. WHERE object_id = Object_id('metadata.usp_Common_CreateDestinationTable')
  9. select p.[type]
  10. ,p.[name]
  11. ,c.[definition]
  12. from sys.objects p
  13. join sys.sql_modules c
  14. on p.object_id = c.object_id
  15. where p.[type] = 'P'
  16. and c.[definition] like '%usp_Common_CreateDestinationTable%'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement