Hi, I am new to MySQL I have problem about setting MySQL varchar length. It is ok for me to set varchar length 250 => varchar(250) and this works fine But when I set it varchar length 300 => why it became "text" and it not worked for my script and it showed error message : [ODBC Driver Manager] Invalid string or buffer length Please help: I need varchar(300) to run my script. How to set the MySQL table? Thanks,
CHAR and VARCHAR have a length limit of 255. http://dev.mysql.com/doc/refman/5.0/en/char.html After that you should be storing in a text or blob.
Still need help. I tried blob and text but all not working. BLOB or TINYBLOB error message: Provider error '80040e21' Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. line 2637 =>rs("Str1")=left(Str1,300) TEXT and TINYTEXT error message: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Invalid string or buffer length line 2652 => rs.Update What I missed something? THanks,