Subject: Re: Odbc exception - The search key was not found in any record
Date: Fri, 18 Jul 2003 09:22:30 +0200
Lines: 90
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.adonet
NNTP-Posting-Host: alc243.alcatel.be 195.207.101.243
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:56085
X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
Hi Scot,
The sql is executed in a long process, so I can't reproduce it. I'll now try
to close then reopen the connection, but I will not have the answer whether
it works or not, before another exception is reached by one of my users...
This is not the only strange problem I get with odbc; here are some other
exceptions occuring very rarely:
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet
database engine stopped the process because you and another user are
attempting to change the same data at the same time.
ERROR [07009] [Microsoft][ODBC Microsoft Access Driver] Invalid argument.
ERROR [08004] [Microsoft][ODBC Microsoft Access Driver] Too many active
users.
ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Could not update;
currently locked.
System.InvalidOperationException: BeginTransaction requires an open and
available Connection. The connection's current state is Open, Executing.
Thanks,
Sebastien
Are you executing these one after the other in a loop or is this a longer
process. What happens if you Trap the exception, wait a few seconds and try
it again? Does a time delay
have any effect? Have you tried closing and reopening the connection and
re-executing?
Want to know more? Check out the MSDN Library at
http://msdn.microsoft.com
or the Microsoft Knowledge Base at
http://support.microsoft.com
Scot Rose, MCSD
Microsoft Visual Basic Developer Support
Email : (e-mail address removed) <Remove word online. from address>
This posting is provided "AS IS", with no warranties, and confers no
rights.
--------------------
From: "Sebastien Lange" <
[email protected]>
Subject: Odbc exception - The search key was not found in any record
Date: Wed, 16 Jul 2003 15:49:48 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.adonet
NNTP-Posting-Host: alc246.alcatel.be 195.207.101.246
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:55869
X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
Hi,
I'm executing the sql below several times, but one out of 10000... it
throws
an exception! Any idea what could lead to this exception? I don't think
it
has something to do with the WHERE statement. Should I try catch the
exception, then close and reopen the db, then try to execute the sql
again?
Cannot execute sql: DELETE * FROM [l_sibvar] WHERE state_nbr>=1000000 AND
state_nbr<2000000 ---> System.Data.Odbc.OdbcException: ERROR [HY000]
[Microsoft][ODBC Microsoft Access Driver] The search key was not found in
any record
Thanks,
Sebastien