When retrieving long text data from the record set on the ASP page, the following error occurs:
Microsoft ole db provider for ODBC drivers error '80040e21'
Errors Occurred
There are three solutions:
(1) Use Rs. Open SQL, Conn, to open the record set
(2) Place the column in the first column for removal. For example, if the comment contains long text content and the record set content is retrieved, the Comment = RS ("comment ") take out the trick and put it in the memory variable, and then operate other fields. Since the long text content is not displayed in the first display, it is usually taken out and put into the memory variable.
(3) change to oledb for database connection. This error does not occur when you connect to the database in this way (at least I have never encountered it ). In my system, after changing the current oledb connection mode to the ODBC connection mode, the error immediately appears.
This error is caused by some problems related to the mechanism of ASP to fetch data from the record set returned by ODBC. We recommend that you use the third method to avoid this error.