SQl 查询表、存储过程、函数、视图等所在的存储过程
sql语句如下:
select OBJECT_NAME(id) as 存储过程,id from syscomments
where id in(
select object_id(name) from dbo.sysobjects where xtype='P' --存储过程为P
)
and text like '%vt_std_DailyInitialTracks%' --红色内容为你需要查询的关键字
group by id