BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Microsoft][ODBC SQL Server Driver] Timeout expired

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Cenk
Guest





PostPosted: Wed Nov 02, 2005 8:23 pm    Post subject: [Microsoft][ODBC SQL Server Driver] Timeout expired Reply with quote



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





PostPosted: Wed Nov 02, 2005 10:48 pm    Post subject: Re: [ODBC SQL Server Driver] Timeout expired Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.