Dim strSQL As String
Dim i As Integer
strSQL = "SELECT * FROM customer "
Dim dtReader As SqlDataReader
objCmd = New SqlCommand(strSQL, objConn)
dtReader = objCmd.ExecuteReader()
Me.lblText.Text = "<b>Table customer have " & dtReader.FieldCount & " Fields</b>"
For i = 0 To dtReader.FieldCount - 1
Me.lblText.Text = Me.lblText.Text & "<br>" & dtReader.GetName(i)
Next
dtReader.Close()
dtReader = Nothing