• Are you measuring the time to retrieve the 4 million rows? or are you including the time to show them?

    What are you expecting to get? if you're querying the full table, you need to get the full table. Indexes won't help, statistics won't help either, it's a plain simple table scan (or am I wrong?).

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2