Maybe this help you
[ MSDN rocks! :) ]
http://msdn.microsoft.com/library/de...eadertopic.asp
------------------ cut here -------------------------------------
Public Sub CreateMySqlDataReader(mySelectQuery As String, _
myConnectionString As String)
Dim myConnection As New SqlConnection(myConnectionString)
Dim myCommand As New SqlCommand(mySelectQuery, myConnection)
myConnection.Open()
Dim myReader As SqlDataReader =
myCommand.ExecuteReader(CommandBehavior.CloseConne ction)
While myReader.Read()
Console.WriteLine(myReader.GetString(0))
End While
myReader.Close()
'Implicitly closes the connection because
CommandBehavior.CloseConnection was specified.
End Sub
------------------ cut here -------------------------------------