如何计算sql server中数据库的所有存储过程? [英] how to count all stored procedure in the sql server for a database?
本文介绍了如何计算sql server中数据库的所有存储过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何计算sql server中数据库的所有存储过程?
how to count all stored procedure in the sql server for a database?
推荐答案
试试:
Try:
SELECT COUNT(*) FROM information_schema.routines
WHERE routine_type = 'PROCEDURE'
我通过以下脚本解决了这个问题
I have solved this by below script
SELECT Count(*) FROM sys.sysobjects WHERE xtype = 'P'
谢谢,
-RG
Thanks,
-RG
这篇关于如何计算sql server中数据库的所有存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文