Including one more script to my script volt. I have always wanted to easily identify the dependent objects for a procedure. The core of code was grabbed from http://www.sqlservercentral.com/scripts/Cross+Reference/108582/ , I have changed the original script to accommodate the common filter conditions and other dependent objects that I thought was needed. The query identifies the following dependent objects - - Tables - - Views - - Functions - - Procedures /* Parameter -- @ProcedureName ( by default it will be set to @ProcedureName = '-1') -- @ProcedureName = '-1' will -- generate dependencies for all proceudre in the currnt database -- @ProcedureName = ' ' + '%' -- will populate the dependencies which are in the LIKE clause */ DE...
This blog is to, share the encounters and learning’s of Sql Server