SQLSERVER查询存储过程内容

 1 --使用语句查看一个存储过程的定义
 2 
 3 EXEC sp_helptext  'Auth_BankCardAuthorize'
 4 
 5  
 6 
 7  
 8 
 9 --查询所有存储过程的名称以及定义
10 
11 SELECT name, definition
12 
13 FROM sys.sql_modules AS m
14 
15 INNER JOIN sys.all_objects AS o ON m.object_id = o.object_id
16 
17 WHERE o.[type] = 'P'

 

转载于:https://www.cnblogs.com/Bokeyan/p/10983221.html

你可能感兴趣的:(SQLSERVER查询存储过程内容)