' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
﻿Imports System
Imports MySql.Data.MySqlClient

Public Class MainClass
    Public Shared Sub Main(args As String())
        Dim con As New MySqlConnection("Server=localhost;Database=Test;User Id=root;Password=")
        con.Open()
        Dim sel As New MySqlCommand("SELECT * FROM T1", con)
        Dim rdr As MySqlDataReader = sel.ExecuteReader()
        While rdr.Read()
            Console.WriteLine(rdr(0) & " " &rdr(1))
        End While
        rdr.Close()
        con.Close()
    End Sub
End Class
