1、查询的语句:

select a.id,b.name,a.*,b.* from syscomments a
join sysobjects b on a.id=b.id
where b.xtype='P' and a.text like '%usp_cm%'

b.xtype='P'指定在什么类型的范围进行搜索

‘%usp_cm%’就是你能记得的存储过程中的内容。

2、查找类型:

select distinct xtype from sysobjects

找到数据库中全部的对象类型

P是存储过程

V是视图

FN是function

U是Table

......

 

 

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-02-27
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2021-12-18
  • 2021-06-18
  • 2022-12-23
  • 2021-10-01
  • 2022-02-12
相关资源
相似解决方案