当前位置: 代码迷 >> 综合 >> 获取存储过程内容 SQL server
  详细解决方案

获取存储过程内容 SQL server

热度:75   发布时间:2024-01-25 03:35:07.0

--查找存储过程-内容
SELECT name 存储过程名称, definition 存储过程内容
FROM sys.sql_modules AS m
INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
WHERE o.[type] = 'P' and definition like '%NK_WEB.%'

--系统所有资料库
select name from sysdatabases where name like 'NK_WEB%'

--查找存储过程-内容
SELECT name 存储过程名称, definition 存储过程内容FROM sys.sql_modules AS m
INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
WHERE o.[type] = 'P' and definition like '%NK_WEB.%'--系统所有资料库
select name from sysdatabases where name like 'NK_WEB%'

 

  相关解决方案