I am working with SQL Server 2008 R2.
I have a table named punch with lot of rows. I want to know number of rows in this table but without doing a count
. Is it possible? If yes then how?
Thanks
I am working with SQL Server 2008 R2.
I have a table named punch with lot of rows. I want to know number of rows in this table but without doing a count
. Is it possible? If yes then how?
Thanks
Here is one way.
select row_count
from sys.dm_db_partition_stats
where object_id = object_id('punch')