Table name : sp_text
Column name : obj_Text
In this column, all stored procedures are stored as text.
I need to get all stored procedures with raiserrorand % d in raiserror.
for example, A SP contains the following in it raiserror.
raiserror('quantity adjustment is not allowed in row no %d', 16, 1, @fprowno)
I tried the following query, but could not reach the result.
select *
from sp_text_ismail
where obj_Text like '%raiserror%'
and obj_Text like '%/%d%'
source
share