MySQL Forums
Forum List  »  Connector/ODBC

Re: MS SQL with vb 6
Posted by: Steven Tong
Date: November 06, 2004 06:21PM

Dim gConn As ADODB.Connection
Dim strConnString As String
Dim rsData As ADODB.Recordset
Dim ConnectString as String
ConnectString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=localhost;" _
& "DATABASE=test;" _
& "UID=root;" _
& "PWD=;"
Set gConn = New ADODB.Connection
gConn.ConnectionTimeout = 60
gConn.CommandTimeout = 400
gConn.CursorLocation = adUseClient
gConn.Open ConnectString

strConnString="Select * From WOODRANGE "
Set glbConn = New ADODB.Connection
glbConn.Open strConnString, gConn, adOpenStatic, adLockOptimistic, adCmdText

' after that you can use .update(), .addnew() and other cursor movement

Options: ReplyQuote


Subject
Written By
Posted
November 05, 2004 12:02PM
Re: MS SQL with vb 6
November 06, 2004 06:21PM
November 22, 2004 02:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.