attempting to run a very simple query and fill a datatable, but keep getting a "Failed to enable constraints..." error (using mysql ver 8.0.13). Here's the relevant code:
dim dt as new datatable
Using mycon As New MySqlConnection(...)
Using mycmd As New MySqlCommand("Select * from output_type where
is_active='Y';", mycon)
Try
mycon.Open()
using myread as mysqldatareader = mycmd.executereader
dt.load(myread)
end using
mycon.Close()
End Using
Catch ex As Exception
Finally
If mycon.State <> ConnectionState.Closed Then
mycon.Close()
End If
End Try
End Using
End Using
return dt
I am absolutely certain there are no null values, foreign keys, etc in the output_type table...it is only 9 rows!! What could be causing the error.
Thanks for the help, Daniel