• dwilliscp (5/13/2013)


    I do not have permissions on the server.. and there is a lot of red tape to get anything installed.

    However I did use the SQL provided... with a few changes... thanks for everyones help.

    ; with base as

    (

    SELECT DISTINCT o.name as Calling_Name

    , o.type_desc as Calling_desc

    , p.name as Called_Name

    , p.type_desc as Called_Desc

    FROM sys.sql_dependencies d

    INNER JOIN sys.objects o

    ON d.object_id = o.object_id

    INNER JOIN sys.objects p

    ON d.referenced_major_id = p.object_id

    )

    select * from base

    where [called_name] like 'zt_MSC%'

    order by called_name, Calling_name

    You could be missing out on quite a bit. Since stored procedures can be built before the objects they work with are built, you could have a whole lot of stored procedures where the dependencies were never updated.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)