View SqlServer database of all stored procedures

The SELECT 
the Name, - stored procedure names 
Definition - stored contents procedure 
the FROM the sys.sql_modules the AS m 
 the INNER  the JOIN sys.all_objects the AS O the ON . M object_id  = . O object_id 
the WHERE O. [ Type ]  =  ' P '

 

Guess you like

Origin www.cnblogs.com/zldqpm/p/11355834.html