What you need is ADO.NET:
http://samples.gotdotnet.com/quickst...sOverview.aspx
Here's a very simple example of using a DataReader:
VB Code:
strConn = "Initial Catalog = pubs; Data Source = IN-DEV-RAJAT; User ID = sa; password = ;"
strSQL = "SELECT * FROM authors;"
sqlConn.ConnectionString = strConn
sqlCommand.Connection = sqlConn
sqlCommand.CommandText = strSQL
sqlCommand.Connection.Open()
dr = sqlCommand.ExecuteReader(CommandBehavior.CloseConnection)
With dr
Do While .Read = True
strResult = .GetString(1) & " " & .GetString(2)
Console.WriteLine(strResult)
Loop
.Close()
End With
You will get your connection string here:
http://www.able-consulting.com/dotne...ETDataProvider
You can get drivers from this URL:
http://crlab.com/mysqlnet/download.html