select a.name,a.[type],b.[definition] from sys.all_objects a,sys.sql_modules b 
where a.is_ms_shipped=0 and a.object_id = b.object_id and a.[type] in ('P','V','AF') where a.name='Storage Name or View Name '
order by a.[name] asc

如果找存储过程

sp_helptext 'spName'

  

 

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-10-01
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
相关资源
相似解决方案