October 13th, 2013, 02:09 PM
Getting DataTypeName of each column of table
Hi there ,
I have this code :
Dim query As String = "show columns from " & table_name & " from " & db_name
Dim connection As New MySqlConnection(cons)
Dim cmd As New MySqlCommand(query, connection)
Dim reader As MySqlDataReader
reader = cmd.ExecuteReader()
For i As Integer = 0 To reader.FieldCount - 1
I want to show the field's type of each column of the table , the problem is that FieldCount is incorrect , I do have fields more than VB.NET shows me.
any solutions ?
Click Here to Expand Forum to Full Width