Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to check one Column in all stored procedures

Author  Topic 

SCHEMA
Posting Yak Master

192 Posts

Posted - 2009-07-21 : 14:11:17
I want to check Specific column in all stored procedures in SQL Server 2005? Help.

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2009-07-21 : 14:26:33
try syscomments.

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

SCHEMA
Posting Yak Master

192 Posts

Posted - 2009-07-21 : 14:40:21
Didn't work with SysComments.
Go to Top of Page

andy.pere
Starting Member

8 Posts

Posted - 2009-07-21 : 14:49:25
Select * from syscomments where text like '%COLUMN_NAME%'

Lil Crappie Programmer
Go to Top of Page

ahmad.osama
Posting Yak Master

183 Posts

Posted - 2009-07-24 : 06:13:58
quote:
Originally posted by andy.pere

Select * from syscomments where text like '%COLUMN_NAME%'

Lil Crappie Programmer



select a.name as storedproc ,b.text from sys.syscomments b,sys.objects a
where text like '%column_name%' and a.object_id=b.id and a.type='p'
Go to Top of Page
   

- Advertisement -