Would anyone know how to search only for text that is not commented out from the syscomments or information_schema.routines tables.
example 1:
example 2:
So if these were the only 2 procs in my db and I queried the above tables for 'TEST'. I would like to return one row, because the only time test shows up the in the something2 procs is in a comment.
Is this possible?
Thanks
Well Done is better than well said
- Ben Franklin
example 1:
Code:
create proc something
as
[COLOR=green]--test[/color]
select somefield as 'anything' from test
go
example 2:
Code:
create proc something2
as
[COLOR=green]--test[/color]
select somefield as 'anything' from sometable
go
So if these were the only 2 procs in my db and I queried the above tables for 'TEST'. I would like to return one row, because the only time test shows up the in the something2 procs is in a comment.
Is this possible?
Thanks
Well Done is better than well said
- Ben Franklin