VirtualObjectives

Count Records in a Database

This script is used to return the number of rows in each table of a database.

The function uses sp_spaceused.

Suitable For:

2005, 2008, 2012

Sample Output:

Sample results of counting records in a database.

Download/Script:

Download count_records_in_database.zip