Multi-Step OLE DB operation generates an error

Source: Internet
Author: User
Tags ole

If you encounter errors in the programming process as follows:
Multi-Step OLE DB operation generated an error. If possible, check each OLE DB status value

Then you can think about it:
1, the reason is probably you "select * from ..." This sentence, if you have a database of this table in a lot of words may produce OLE DB error, you may want to call the data from the database in the "select field from ..." is not used to the field is best not to put in.

2, the generated fields and the database corresponding to the length of the field does not match the reason. This error may be, for example, if you insert data into the ID field of a table that has a length of 8 digits in the table, and your number is 300, then this may be a mistake.

I hope it will help you.
 

Beyond C + + original articles, reproduced please indicate the source and retain the original link

This article link: http://www.beyondc.cn/multiple-step-ole-db-operation-generated-errors.html

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.