Home Forums SQL Server 2005 SQL Server 2005 General Discussion How to find the objects that use a stored procedure RE: How to find the objects that use a stored procedure
Roy Ernest
SSC-Dedicated
Points: 38780
More actions
September 3, 2008 at 12:54 pm
#866741
Try this.
Select [Text] from syscomments where [Text] like '%spInsert%'
You will get teh whole body of the SP. If you want just the name, then link the Object ID to get the name from SysObjects.
-Roy