Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Select count(*) cause time out error

$
0
0

I invoke the following statement:

select count(*) as total from table1

where table1 is large(30000 rows), total size of the database is more than 20GB.

The above statement will cause time out error. How to solve the problem?


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>