SELECT SUM (row_count) FROM sys.dm_db_partition_stats WHERE object_id=OBJECT_ID('TableName') AND (index_id=0 or index_id=1);
Post a comment
Log in or sign up to comment on this bit
Comments
Be the first to comment on this post!