16 January 2014

Get the related Stored Procedure to a table

SELECT DISTINCT o.name, o.xtype
FROM syscomments c
INNER JOIN sysobjects o ON c.id=o.id
WHERE c.TEXT LIKE '%Yourtablename%'

No comments:

Post a Comment