Solution for retrieving long text data on ASP pages

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.