--select string using in procedure
select b.name, a.text from syscomments a left join sysobjects b on b.id=a.id
where b.xtype='P' and a.text like '%USP_FOUNDATIONUPDATE%'


--select columns name
select b.name as Table1, a.name as Columns1,a.type  from syscolumns a left join sysobjects b on b.id=a.id
where b.xtype='u' and a.name like '%season%'

 

--select table name
select name from sysobjects where xtype='u' and name like '%habit%'


--select string using in function
select b.name, a.text from syscomments a left join sysobjects b on b.id=a.id
where b.xtype='fn' and a.text like '%Fn_GetIR%'


--select string using in view
select b.name, a.text from syscomments a left join sysobjects b on b.id=a.id
where b.xtype='V' and a.text like '%vw_species%'

	

  

相关文章:

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