日期:2014-05-18  浏览次数:20349 次

写一存储过程实现"查找某一内容在现有存储过程中的存储过程",在线等
在线等

------解决方案--------------------
??
------解决方案--------------------
不解...
------解决方案--------------------
declare @str varchar(200)
set @str= 'create '

select a.name from sysobjects a Inner Join syscomments b On a.id=b.id where a.type= 'p ' and text like '% '+@str+ '% '
------解决方案--------------------
select a.name from sysobjects a Inner Join syscomments b On a.id=b.id where a.type= 'p ' and text like '% '+@str+ '% '

------解决方案--------------------
关注。。。
------解决方案--------------------
syscomments的text字段就保存了存储过程的内容

楼上的已经写的很清楚了。
楼主还有什么不懂得?