I mainly use MySQL, SAPDB and Oracle databases - and so far have found that using the ADODB connection to open and work with these databases is extremely fast compared to other methods available in dot net anyone else found this so.
VB.NET:
Public conn As ADODB.Connection
Public subrs As ADODB.Recordset
Public rs As ADODB.Recordset
Public sapconn As ADODB.Connection
Public sapsubrs As ADODB.Recordset
Public saprs As ADODB.Recordset
Try
conn = New ADODB.Connection
rs = New ADODB.Recordset
subrs = New ADODB.Recordset
conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=localhost;" _
& "DATABASE=<databasename>;" _
& "UID=root;" _
& "PWD=<password>;"
conn.Open()
Catch ex As System.Exception
MsgBox(ex.Message)
End Try
Try
sapconn = New ADODB.Connection
saprs = New ADODB.Recordset
sapsubrs = New ADODB.Recordset
sapconn.ConnectionString = "DRIVER={MaxDB};" _
& "SERVER=<servername>;" _
& "DATABASE=<databasename>;" _
& "UID=<username>;" _
& "PWD=<password>;"
sapconn.Open()
Catch ex As System.Exception
MsgBox(ex.Message)
End Try
Last edited by a moderator: