[SQL study notes] query stored procedure information in the database

Query stored procedure name information in the database

SELECT 
	 [存储过程名称] = SO.name
	,[存储过程创建时间] = SO.create_date
	,[最后更改时间] = SO.modify_date
FROM sys.objects SO
WHERE TYPE = 'P'
ORDER BY SO.modify_date DESC

Query the content information of the specified stored procedure

--查询这个可以显示存储过程内容的存储过程的内容
EXEC SP_HELPTEXT 'SP_HELPTEXT'
Published 23 original articles · Like1 · Visits 20,000+

Guess you like

Origin blog.csdn.net/shenjie_xsj/article/details/105390268