Stored procedure dependencies in SQL Server Management Studio

前端 未结 5 2118
抹茶落季
抹茶落季 2021-01-14 08:35

I don\'t know much about the MS world, but now it happens to be that I have to use SQL Server Management Studio 2008.

My problem: I have a column in a table, and I n

5条回答
  •  Happy的楠姐
    2021-01-14 09:24

    I wonder why you cannot see the dependencies via the 'View Dependencies' dialog because it works perfectly fine for me. Nevertheless you can query the 'sys.sql_expression_dependencies' system view and obtain the dependency information that you want.

    Example

    SELECT OBJECT_NAME(referencing_id),OBJECT_NAME(referenced_id)  
    FROM sys.sql_expression_dependencies 
    WHERE referenced_id = OBJECT_ID('XXX')
    

    You can of course project other information that you might need.

提交回复
热议问题