A
acx
Dear colleagues,
currently I face the following problem. My client application is
programmed in MS Access 2003 and my DB resides on MS SQL Server 2005.
In my DB, I have programmed a stored procedure which runs about 8
minutes. This sp is called from the client application via pass-
through query. This mechanism worked perfectly about 1 year but
suddenly ("overnight") the problem occured. When the sp is called from
Management Studio it works perfectly but when it is called from Access
it throws the error 3146: "ODBC - call failed" after 62-70 seconds
from the initiation. Unfortunately, I can't find any SQL Server log
which would specify the error. I have also tried some ODBC tracer
("ODBC Monitor") but I have received no concrete information as well.
It is true that I have made some small changes to the sp around the
time it stopped working from Access but those changes should not make
problems and - as I said - it works still perfectly from Management
Studio.
The second "overnight" problem is similar and occured in the same time
like the first. In Access, my code often builds a syntax of rather
complicated view based on user settings made on some form and passes
it to SQL Server. In some concrete cases, especially when the syntax
is very long, Access throws the error 3146 again (after about 20
seconds). However, when I run the view in Management Studio, it works
always well. Also, when I rebuilt the view syntax on the client
immediately and the syntax is now even longer then before, it is
successfully executed sometimes although the execution lasts eg. 1
minute...
I don't know what happend. Maybe some SQL Server update has been
installed, maybe some time-outs have been set (based on the actual
server performance)...
Do you have any ideas? Any help appreciated.
Thanks,
MikeX
currently I face the following problem. My client application is
programmed in MS Access 2003 and my DB resides on MS SQL Server 2005.
In my DB, I have programmed a stored procedure which runs about 8
minutes. This sp is called from the client application via pass-
through query. This mechanism worked perfectly about 1 year but
suddenly ("overnight") the problem occured. When the sp is called from
Management Studio it works perfectly but when it is called from Access
it throws the error 3146: "ODBC - call failed" after 62-70 seconds
from the initiation. Unfortunately, I can't find any SQL Server log
which would specify the error. I have also tried some ODBC tracer
("ODBC Monitor") but I have received no concrete information as well.
It is true that I have made some small changes to the sp around the
time it stopped working from Access but those changes should not make
problems and - as I said - it works still perfectly from Management
Studio.
The second "overnight" problem is similar and occured in the same time
like the first. In Access, my code often builds a syntax of rather
complicated view based on user settings made on some form and passes
it to SQL Server. In some concrete cases, especially when the syntax
is very long, Access throws the error 3146 again (after about 20
seconds). However, when I run the view in Management Studio, it works
always well. Also, when I rebuilt the view syntax on the client
immediately and the syntax is now even longer then before, it is
successfully executed sometimes although the execution lasts eg. 1
minute...
I don't know what happend. Maybe some SQL Server update has been
installed, maybe some time-outs have been set (based on the actual
server performance)...
Do you have any ideas? Any help appreciated.
Thanks,
MikeX