| View previous topic :: View next topic |
| Author |
Message |
Cenk Guest
|
Posted: Wed Nov 02, 2005 8:23 pm Post subject: [Microsoft][ODBC SQL Server Driver] Timeout expired |
|
|
Hi,
there are approximetly 4 billion data in my SQL but gives time out error
when i try to use ORDER BY! Would you please help me?
thanks
|
|
| Back to top |
|
 |
denis.gobo@gmail.com Guest
|
Posted: Wed Nov 02, 2005 10:48 pm Post subject: Re: [ODBC SQL Server Driver] Timeout expired |
|
|
Do you have an index on the column(s) you are ordering by?
And more important do you have an index on your where clause and is it
sargable?
Ordering 4 billion records will take some time
Perhaps you should consider horizontal partitioning
------------------------------------------------------------------------------------------
"I sense many useless updates in you... Useless updates lead to
fragmentation... Fragmentation leads to downtime...Downtime leads to
suffering..Fragmentation is the path to the darkside.. DBCC INDEXDEFRAG
and DBCC DBREINDEX are the force...May the force be with you" --
http://sqlservercode.blogspot.com/
|
|
| Back to top |
|
 |
|