读书人

写一存储过程实现quot;查找某一内容在现有

发布时间: 2012-02-25 10:01:48 作者: rapoo

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

[解决办法]
??
[解决办法]
不解...
[解决办法]
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字段就保存了存储过程的内容

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

读书人网 >SQL Server

热点推荐