Query to list all stored procedures

后端 未结 23 1556
暖寄归人
暖寄归人 2020-11-28 17:18

What query can return the names of all the stored procedures in a SQL Server database

If the query could exclude system stored procedures, that would be even more he

23条回答
  •  误落风尘
    2020-11-28 18:09

    Unfortunately INFORMATION_SCHEMA doesn't contain info about the system procs.

    SELECT *
      FROM sys.objects
     WHERE objectproperty(object_id, N'IsMSShipped') = 0
       AND objectproperty(object_id, N'IsProcedure') = 1
    

提交回复
热议问题