Last active
July 10, 2018 14:03
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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