declare @sql varchar(MAX)
set @sql = ( select ROUTINE_DEFINITION
from INFORMATION_SCHEMA.ROUTINES
where ROUTINE_TYPE = N'PROCEDURE' and ROUTINE_NAME = 'procToExamine' )
if ( dbo.fn_regex('@ParamName(\s)*\[(\s)*int(\s)*\](\s)*=(\s)*null(\s)*\,' , @sql) <> 0)
print 'yes'
ELSE
PRINT 'no'
print @sql
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!