I have created an machine odbc connection called MITRON, I am trying to write queries and updates, but I cant get the connections to work.
Dim conn As String = "DRIVER=(MySQL ODBC Driver);SERVER=svrhou04=mitron;UID=pqm;PWD=pqm;OPTION=16427;"
Dim sqlconn As New Odbc.OdbcConnection(conn) Dim sql As String = "Select * from area" Dim sqlcommand As New OdbcCommand(sql, sqlconn)
sqlcommand.CommandTimeout = 0
Dim myadapter As New OdbcDataAdapter(sqlcommand) Dim ds As New DataSetmyadapter.Fill(ds)
Dim rowcnt As Integerrowcnt = ds.Tables(0).Rows.Count.ToString()