How to count total number of stored procedure and tables in SQL Server 2008

后端 未结 7 1554
刺人心
刺人心 2020-12-24 06:40

I have database Test1 in SQL Server 2008 R2. On the live server I took backup from there and restore it at our local machine as Test2 and added som

7条回答
  •  心在旅途
    2020-12-24 07:24

    You can use those 2 queries:

    select count(*) as TablesCount from sys.tables
    select count(*) as ProceduresCount from sys.procedures
    

提交回复
热议问题