SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


getting the error "odbc sql server driver timeout expired"


getting the error "odbc sql server driver timeout expired"

Author
Message
marees.inspire
marees.inspire
SSC Journeyman
SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)SSC Journeyman (96 reputation)

Group: General Forum Members
Points: 96 Visits: 247
Hi ALl,
When i am trying to run the query from UI (to SQL) , getting the error "odbc sql server driver timeout expired".

Please provide me the reason for this issue and how to handle these issues.
JacekO
JacekO
SSChasing Mays
SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)

Group: General Forum Members
Points: 654 Visits: 615
One reason could be the query you trying to execute takes a long time and the driver is timing out waiting for the response from the SQL Server. The default value is several minutes (I do not remember exactly - it was a while ago when I used ODBC) so if your query is executing quickly in Management Studio then maybe the UI timeout value was set to a much smaller value - check if your code is setting the timeout values.

---------------------------------------------
Nothing is impossible.
It is just a matter of time and money.

Wesley Norton
Wesley Norton
Old Hand
Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)Old Hand (379 reputation)

Group: General Forum Members
Points: 379 Visits: 442
I have seen the same problem here where some Access "applications" were used as front ends for the MSSQL tables. There is a timeout field that you can set. Don't make the same mistake we did and set it really high. Set it to 0 (my experience in Access) and it will disable time out.

What kind of UI is it?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search