关闭

查询函数在哪些存储过程中使用

91人阅读 评论(0) 收藏 举报
分类:
SELECT OBJECT_SCHEMA_NAME ( referencing_id ) AS referencing_schema_name,
      OBJECT_NAME(referencing_id) AS referencing_entity_name, 
      o.type_desc AS referencing_desciption, 
      COALESCE(COL_NAME(referencing_id, referencing_minor_id), '(n/a)') AS referencing_minor_id, 
      referencing_class_desc, referenced_class_desc,
      referenced_server_name, referenced_database_name, referenced_schema_name,
      referenced_entity_name, 
      COALESCE(COL_NAME(referenced_id, referenced_minor_id), '(n/a)') AS referenced_column_name,
      is_caller_dependent, is_ambiguous
  FROM sys.sql_expression_dependencies AS sed
  INNER JOIN sys.objects AS o ON sed.referencing_id = o.object_id
  WHERE referenced_id = OBJECT_ID(N'Function Name');
  
  
select *
from sys.sql_modules
where definition like '%Function Name%'
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:480次
    • 积分:44
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:1篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档