Archive | May, 2011

Query for getting SP associated with a table

4 May

Here is the query for getting all stored procedure name associated with a particular table in SQL server 2008.

EXEC sp_depends tableName

This query gives all the stored procedures associated with the table ‘tableName’

Advertisements