Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADOQuery Giving me trouble again....

Status
Not open for further replies.

memevertical2

Programmer
May 2, 2008
35
Hi, I'm trying to run a command in SQL, the INSERT INTO command, but it gives the following error: Parameter Object is Improperly defined. Inconsistent or incomplete information was provided.

The SQL text has 50 fields and values. If I use the code, one field at a time, it gives that error in a specific Field, but the funny thing is that the field were it stops, is identical to the other fields, a simple Text Field.

What can be going wrong?
 
SIZE a reserved word in SQL.

So if your SQL statement was something along the lines of:

INSERT INTO Listings ([Size]) VALUES ('50');

then that would work.
 
So, do you think its a good idea to include [] on all fields in case the user creates a column with other reserved word?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top