SELECT c.text From syscomments c, sysobjects o Where o.id=c.id and o.name=@procname Order By c.colid
SELECT * FROM sys.sql_modules sm WHERE sm.definition LIKE '%ObjectName%'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)