SQL Server does not normally define parameter objects and provides inconsistent or incomplete information.

Source: Internet
Author: User

This error is generated when a query statement is executed:

With dm. ADOQuery1 do
Begin
Close;
SQL. Clear;
SQL. Add ('select hyxx. *, hyjbxx. jbmc from hyxx, hyjbxx where hyxx. jb = hyjbxx. jbid'); Open;
End;

Copy the SQL statement to the query analyzer for execution. According to past experience, the first reason for this error is that the connection is not connected, the second is that the query statement contains a colon, but the paramcheck of adoquery is true. I have checked these two reasons and none of them exist. I connected another database with the same structure, and there was no running problem, that is, there was a problem with the records in the table. The ID (primary key) of the first data in the hyxx table is empty. I was wondering where the empty string came from. The original program did not control the empty string? Don't look for the cause first. Check if this is the cause first. Fill in a few characters, save, execute the program, OK!

 

Related Article

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.