3
Answers

Stored procedure in a table

Hi.. Any one can u tell me How to get name of all stored procedure which are used in a table? Thanks
Answers (3)
0
Rajeswari nathan
NA 274 20k 15y

Nice,
This answer is helpful for me.
0
Purushottam Rathore
20 8.9k 6.6m 15y
Thanks for reply. My question is how to find stored procedure which are related to particular table. Well, i have found the solution. SELECT DISTINCT sp.name as StoredProcedureName FROM syscomments scomment INNER JOIN sysobjects sp ON scomment.id=sp.id WHERE scomment.TEXT LIKE '%BannerStatistics%'
0
Roei Bar
NA 7.8k 0 15y
if you are looking for all sp used in specific DB you can use

select * from sys.objects where type='p'

or i am missing something