Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

SQL Server takes 6 minutes to read data from a table that has.... 0 rows!

$
0
0

Hi,

Everything is in the title, if I run a select count(1) from table, I get a result of 0 rows. If I do a select * from table it takes forever to read and finish the query. Also disk is reading the DB files at speed of 330 MB/sec while doing that query.

So.... WTF ? Any one got an idea on how I fix that ?

Thanks

------

a 115 GB of data for 0 rows................. wtf :)

TableNameSchemaNameRowCountsTotalSpaceKBUsedSpaceKBUnusedSpaceKB
msgdbo011571398411569728016704

------

Edit 2: truncate would be nice but the table is replicated ... hahaha


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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