SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Get Record Counts for Each Table

By Mindy Curnutt,

This script creates a stored procedure that you can call to get the record count for every table in a particular database.  It uses the sp_MSforeachtable system stored procedure and a temp table.

Total article views: 619 | Views in the last 30 days: 1