Re: Connection MySQL through ADO with MyOLEDB provider



Well it's MyOLEDB v3.0 and as long as I know it's the latest version.
Of course I have a connection object!! And I found a silly way myself:

try {
recordSet = connection->Execute(query.data(), NULL, 1);
}

I don't know why but this way it works fine!!
Thanks anyway.

Mehran Ziadloo


"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> wrote in message
news:#uHcRhDpFHA.2904@xxxxxxxxxxxxxxxxxxxxxxx
> > try {
> > command->CommandText = query.data();
> > recordset->Open ( (IDispatch *) command, vtMissing, adOpenStatic,
> > adLockBatchOptimistic, adCmdUnknown);
> > }
>
> You need to have a connection for command object. Do you have one?
> Other than this it looks fine. It is probably a MYOLEDB problem
>
> You don't report the version number of MYOLEDB
>
> What I would do is this:
>
> 1. See if you can find a later provider (driver) of MYOLEDB that fixes
this
> problem
> 2. Failing that, find out if this is a known problem with this provider
and
> if there are any workarounds.
>
> S
>
>


.



Relevant Pages

  • Re: ADO und MySQL
    ... >>> OLE DB provider for ODBC. ... >> Kannst Du MyOLEDB verwenden? ...
    (microsoft.public.de.access.clientserver)
  • Re: ADO und MySQL
    ... handelt es sich bei diesen Providern um Treiber ... Dateien die am Client installiert werden wollen. ... "MyOLEDB is not officially supported by MySQL." ... >> ein MS OLE DB Provider genutzt wird. ...
    (microsoft.public.de.access.clientserver)
  • Re: Connection MySQL through ADO with MyOLEDB provider
    ... You need to have a connection for command object. ... You don't report the version number of MYOLEDB ... See if you can find a later provider of MYOLEDB that fixes this ...
    (microsoft.public.data.ado)