Sys Commands :
1) How to count number of procedures in a table
USE [Database_Name]
SELECT COUNT(*) as procedures FROM sys.procedures
2) How to get the attributes of procedure in a table
USE [DatabaseName]
SELECT * FROM sys.procedures where name LIKE 'ProceduresName'
3) How to count number of tables in a database
USE [Database_Name]
SELECT COUNT(*) FROM sys.tables
4) How to get the attributes of table in a database
USE [DatabaseName]
SELECT * FROM sys.tables where name LIKE 'TableName'
5) How to count number of database
select COUNT(*) FROM sys.databases
6) How to get the attributes of database
SELECT * FROM sys.databases where name LIKE 'Database_Name'
7) How to count number of servers
select COUNT(*) from sys.servers
0 Comment(s)