• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

How to locate number of rows without firing select count(*) query

Hi,
I have 4-5 massive BI tables where the records are in hundreds of millions. I can't fire select count(*) as that will take next 4-5 hours to return results from these tables. The server is already overused.

I can see the query is estimating the execution plan & rows. Is there is an internal optimizer table from where I can get apprx number of rows at each table?


Thanks
0
crazywolf2010
Asked:
crazywolf2010
1 Solution
 
jogosCommented:
In the DMV sys.dm_db_index_physical_stats and there the record_count, but read comment on this at
http://msdn.microsoft.com/en-us/library/ms188917.aspx
0
 
Ramesh Babu VavillaCommented:
sp_spaceused 'tabelname'
resutls gives, rows, reserves space, data space, index space
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now