Re: Suddenly ODBC driver does not work
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 28 Nov 2005 06:32:59 -0500
Rolf Rosenquist wrote:
> I have an application that has worked fine for more than 2 years.
> Suddenly the users and I get an error message when trying to open the
> MySql database for writing. The web host says that I may have a too
> complicated script or anything else. So far no help from them.
>
> The page stops and shows "ODBC Drivers error '80040e21'
> ODBC driver does not support the requested properties. "
>
> My code here is stopping at the last line:
> Dim rsProgr
> Set rsProgr = Server.CreateObject("ADODB.Recordset")
> rsProgr.Open "Program", objConn, adLockPessimistic, adCmdTable
>
> After many tries with this error message, it suddenly works again as
> if no fault has happened. And later, the same story again.
> Anyone knows where to start?
> / Rolf
I just noticed that you are using MySQL. I have no experience with that
database, but I have to ask, why are you using a pessimistic lock? And why
the adCmdTable? Could you not specify a sql statement that returns exactly
the columns and rows that you need and use a default forward-only cursor?
If you are planning to make data updates, you should be using DML
(UPDATE/INSERT/DELETE statements) rather than resource- and lock-intensive
cursors (recordsets). You can use transactions with MySQL, so there is no
need for pessimistic locking.
I suspect your provider needs to install a new version of the MySQL ODBC
driver if you intend to continue using these inefficient techniques. In any
event, you will likely get better suport by going to a MySQL forum or
newsgroup if any exist.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Follow-Ups:
- Re: Suddenly ODBC driver does not work
- From: PJones
- Re: Suddenly ODBC driver does not work
- References:
- Suddenly ODBC driver does not work
- From: Rolf Rosenquist
- Suddenly ODBC driver does not work
- Prev by Date: Recordset.Open Causes Lockup/Timeout
- Next by Date: Using ADOX to create and modify MySQL database
- Previous by thread: Re: Suddenly ODBC driver does not work
- Next by thread: Re: Suddenly ODBC driver does not work
- Index(es):
Relevant Pages
|
|