Skip to content

Instantly share code, notes, and snippets.

@aquasmit
Last active July 10, 2018 14:03
Show Gist options
  • Save aquasmit/5f36ff58e6cc8e9a5372783629065ffb to your computer and use it in GitHub Desktop.
Save aquasmit/5f36ff58e6cc8e9a5372783629065ffb to your computer and use it in GitHub Desktop.
SQL server - get approximate count of rows from a table with large number of records
use [SALES]
/*This returns approximate count*/
EXEC sp_spaceused N'dbo.Customers';
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment