If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > need help with timeout problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-09-05, 09:37
chuk chuk is offline
Registered User
 
Join Date: Oct 2004
Posts: 10
need help with timeout problem

hi all,

the following code times-out the first couple of times, but then starts to
work (if u can call 20 second queries "working"). this happens everytime
someone runs this code for the first time.

''''''''''''''''''''''''''
mConn.ConnectionString = "PROVIDER=MSDASQL;DSN=MyDsn"
mConn.CursorLocation = adUseServer
mConn.ConnectionTimeout = 0
mConn.Open

mSQL = "select distinct tixhistlin.ItemNumber,tixhistlin.ticketnumber, " & _
"From tixhistlin, tixhisthdr " & _
"where tixhistlin.customernumber='" & Me.txtCiPhHome.Text & "'"

mRsTixHist.Open mSQL, mConn, adOpenForwardOnly, adLockOptimistic
'''''''''''''''''''''''''''''
that plus the fact that no matter what i set the timeout value to, the
operation still times out after 30 seconds (the default?)

this has me perplexed...
(any more perplexing and i'll be ready for a straight-jacket)

any suggestions are appreciated...
Reply With Quote
  #2 (permalink)  
Old 03-09-05, 11:21
chuk chuk is offline
Registered User
 
Join Date: Oct 2004
Posts: 10
plz overlook the query statement, i didn't copy & paste it too well...
Reply With Quote
  #3 (permalink)  
Old 03-09-05, 12:56
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
What version of Pervasive are you using? How long does the query take if you run it using the PCC?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #4 (permalink)  
Old 03-09-05, 13:05
chuk chuk is offline
Registered User
 
Join Date: Oct 2004
Posts: 10
version: 8

PCC query duration: 10 seconds
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On