cookieChoices = {};

Wednesday, 4 May 2016

Get All Stored Procedure Relate To Table

Get All Stored Procedure Relate To Database


Use Command: 

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

No comments:

Post a Comment