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 > Database Server Software > MySQL > ADO question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-01-04, 02:39
divined divined is offline
Registered User
 
Join Date: Apr 2004
Posts: 110
ADO question

Hello everybody

I`m trying to use ADO to connect to a MySQL database. The frontend is being written in Visual Basic 6. I`m having some trouble with the cursor types, though! Can anyone elaborate on the differences between a server-side cursor and a client-side cursor?
Currently I`m using a client-side cursor and am getting intermittent cursor type errors when updating my data.

I quote the connection handling code of my program.

Set connbio_tech = New ADODB.Connection
connbio_tech.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" & "SERVER=" & strServerIP & ";" & " DATABASE=bio_tech;" & "UID=" & strOnomaXrhsth & ";PWD=" & strKwdikosXrhsth
connbio_tech.CursorLocation = adUseClient
connbio_tech.Open ' Άνοιγμα σύνδεσης

Set rsTexnikos = New ADODB.Recordset
strSQL = "Select * From Texnikos"
rsTexnikos.CursorLocation = adUseClient
rsTexnikos.Open strSQL, connbio_tech, adOpenDynamic, adLockOptimistic

Anything that would obstruct updates of the Recordset object in this code?

thx, in advance

George Papadopoulos
Reply With Quote
  #2 (permalink)  
Old 11-01-04, 05:24
Daniel_Johns Daniel_Johns is offline
Registered User
 
Join Date: Jul 2004
Posts: 69
refer to this site: http://delphi.about.com/library/weekly/aa061201b.htm

this is not a visual basic specific but the concept is the same.
Reply With Quote
  #3 (permalink)  
Old 11-01-04, 06:09
divined divined is offline
Registered User
 
Join Date: Apr 2004
Posts: 110
thx. Very insightful. I do have a question though! Can I use a dynamic cursor type with a server side cursor location?
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