Table name : sp_text
Column name : obj_Text
在此列中,所有存储过程都以文本形式存储。在Sql server 2008中使用like子句选择查询
我需要检索所有raiserror
和%d在raiserror
中的所有存储过程。
例如,SP在其中包含以下raiserror
。
raiserror('quantity adjustment is not allowed in row no %d', 16, 1, @fprowno)
我试过下面的查询,但无法得出结果。
select *
from sp_text_ismail
where obj_Text like '%raiserror%'
and obj_Text like '%/%d%'
什么是“你也不能在存储过程中选择或过滤器”是什么意思? – Gabe 2011-01-10 05:35:46
非常感谢。 – user292848 2011-01-10 05:40:47