I wrote a program that works just fine normally, but when I change one of the fields in the mysql database to a text field (or mediumtext, long text blob etc) the program throws an error:
And flags the bold line:
EDIT: for some reason the forums are adding spaces to the line by the 'n', those are not in the code.
It normally works but as soons as the field type is changed (to larger than tinytext) it errors. Is there a byte or size limit when using OleDb?
VB.NET:
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
Additional information: No error information available: DB_E_NOTABLE(0x80040E37).
And flags the bold line:
EDIT: for some reason the forums are adding spaces to the line by the 'n', those are not in the code.
VB.NET:
Dim fdCon As New OleDb.OleDbConnection("Provider=MySQLProv;Data Source=test;User Id=root;Password=;")
Dim fdCom As New OleDb.OleDbCommand("SELECT * FROM lib1 WHERE id = '" & TextBox1.Text & "'", fdCon)
fdCom.Connection.Open()
[b] Dim fdRead As OleDb.OleDbDataReader = fdCom.ExecuteReader(CommandBehavior.CloseConnection)[/b]
While fdRead.Read
do somthing
end while
It normally works but as soons as the field type is changed (to larger than tinytext) it errors. Is there a byte or size limit when using OleDb?