Avatar of N_Sri
N_Sri

asked on 

Sql Server : Finding all the Stored procedures on some condition

Hi ,
Please help me to write this query.
Query  which takes  Table name as parameter AND Column name as parameter ,and finds all the Stored Procedures in my database
Microsoft SQL Server 2008

Avatar of undefined
Last Comment
N_Sri
ASKER CERTIFIED SOLUTION
Avatar of sventhan
sventhan
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Ephraim Wangoya
You have multiple questions similar to this one
select object_name(id) as 'Stored Procedure'
from syscomments sc
inner join sys.objects so
on sc.id = so.object_id 
where so.type = 'P'
and (text like '%TableName%')    --your table name
and (text like '%ColumnName%')    --your column name

Open in new window

SOLUTION
Avatar of Alpesh Patel
Alpesh Patel
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of N_Sri
N_Sri

ASKER

thankyu
Microsoft SQL Server 2008
Microsoft SQL Server 2008

Microsoft SQL Server 2008 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. Major improvements include the Always On technologies and support for unstructured data types.

50K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo