If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Unsing DynamicCursor with MyODBC under ADO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-03, 14:20
bschwemmer bschwemmer is offline
Registered User
 
Join Date: Feb 2003
Posts: 1
Unsing DynamicCursor with MyODBC under ADO

Hello,

I want to use Dynamic Cursors in my Application. MyODBC 3.51 supports Dynamic cursors. But Im not able to use in in conjuction with ADO 2.7.
Has anyone experience with Dynamic Cursors under MyODBC?

I open the Connection in ADO with:

"Driver={mySQL ODBC 3.51 Driver};Server=localhost;Port=3306;Database=buchon line;Uid=bol;OPTION=35"
32 to activate dynamic cursors + 3 for compatiblity

Then I open my Recordset:

m_pRecordset->CursorType = adOpenDynamic;
m_pRecordset->CursorLocation = adUseServer;
m_pRecordset->LockType = adLockOptimistic;

m_pRecordset->Open((LPCSTR)m_strQuery, _variant_t((IDispatch*)mpdb, TRUE), adOpenDynamic, adLockOptimistic, adCmdUnknown);

But when I call:

m_pRecordset->GetCursorType();

I see, that ado opened a ForwardOnly Cursor. Why?!?

Thanks for your help,

Björn Schwemmer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On