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
Test1
Test2
You can use those 2 queries:
select count(*) as TablesCount from sys.tables select count(*) as ProceduresCount from sys.procedures