The easiest way to count the number of rows in a table, from the user perspective, is to use the simple COUNT(*) operator. A more efficient method to count the number of records in a table is to use SQL Server’s system tables. Let’s start out with the naive approach and see how it performs. [...]