VB SQL

Dim sqlConnection1 As New SqlConnection(“Your Connection String”)

Dim cmd As New SqlCommand

Dim reader As SqlDataReader

cmd.CommandText = “SELECT * FROM Customers”

cmd.CommandType = CommandType.Text

cmd.Connection = sqlConnection1
sqlConnection1.Open()

reader = cmd.ExecuteReader()
‘ Data is accessible through the DataReader object here.
sqlConnection1.Close()