October 7, 2004 at 9:02 am
Hello,
There ais a view that runs an intense SELECT query. When using Enterprise Manager (MSSQL 2000) the results do no display, and after about 60 sec the following pop up message is displayed (with no data results):
""Microsoft ODBC SQL Server Driver Timeout expired"
However, if I run the exact same view in Query Analyser, it runs immediatelly with no problems (execution time = 112). The db server timeout is set at 0 (unlimited).
Hope someone can help.
Many thanks. Jeff
October 8, 2004 at 7:52 am
From another forum:
"
I'm having a really strange behaviour using ASP/ODBC/SQL Server 2000...
I have a table width a 'text' type collumn.
I have no problem inserting a new line with a long string (about 50k) to that column of the table using a adodb.recordset.
But if I try to update it, with the exact same string I get a:
Microsoft OLE DB Provider for ODBC Drivers error '80040e31'
[Microsoft][ODBC SQL Server Driver]Timeout expired
After waiting 40 seconds...
If I run the exact some update in Query Analyser, it runs immediatelly with no problems (in about 30ms!!).
This problem only occurs when the string is very big...
Can anyone help me?
Thanks!
Pedro"
When I ran two SQL queries the first one would succeed and the second one would fail on the ODBC time-out error.
The funny thing was that the reference to the text-column was only made in the FIRST query and not in the second one.
When I removed the reference to the text-column from the first query and fetched it's value in a third query after the second query was completed, everything started working perfectly again."
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply