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

后端 未结 7 1540
刺人心
刺人心 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:09

    SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'dbName';
    

提交回复
热议问题