Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Too few parameters

25 views
Skip to first unread message

Manny

unread,
Oct 27, 1998, 3:00:00 AM10/27/98
to
I get this error:

07001:[Microsoft][ODBC dBase Driver] Too few parameters. Expected 4.

What does it mean? I know the Param property of TDatabase is empty the
reason being i don't need to put a user name or password to access the
databases.

How can i bypass the username and password thingy or bypass it from having
to check for the Param property.

Manny
man...@hotmail.com

Rohan Lam

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
You havent specified exactly what call returns the error, but in any api,
if you think a parameter is not required, you still need to pass a NULL or
"" or 0 depending on the parameter type. You cannot ignore it.


Manindra

unread,
Oct 29, 1998, 3:00:00 AM10/29/98
to
This is the sql that is executed
Select * From ben.dbf where ((status = "ACTIVE") or (status = "SBW") or
(status = "INESC"))

and this is the error i get

07001:[Microsoft][ODBC dBase Driver] Too few parameters. Expected 3.

Does it atleast mean that i'm able to connect to the dataarea so the
problem only exists with open of database using SQL?

Manny

Rohan Lam <roh...@microsoft.nospam.com> wrote in article
<ekB13pqA#GA....@uppssnewspub04.moswest.msn.net>...

John E. Hobson

unread,
Oct 29, 1998, 3:00:00 AM10/29/98
to Manindra
Try using single-quotes for string literals instead of double-quotes. The ANSI
SQL standard specifies single-quotes for string literals. Most likely the
double-quotes make the driver think you are specifying column names. When the
driver cannot find a column by this name, it thinks it's a parameter. A lot of
people seem to run into this problem.

Select * From ben.dbf where ((status = 'ACTIVE') or (status = 'SBW') or (status
= 'INESC'))

Manindra

unread,
Oct 31, 1998, 3:00:00 AM10/31/98
to
I'm thro with the single or double quotes stuff, what i need now is to be
able to close the cursor before closing the TQuery component. I get this
error saying cannot close Binding something like that.
And it changes the cursor type to static then i have to change it back to
Dynamic.

Reply soon.
John E. Hobson <Jo...@haht.com> wrote in article
<36388017...@haht.com>...

Manindra

unread,
Oct 31, 1998, 3:00:00 AM10/31/98
to
I'm thro with the single or double quotes stuff, what i need now is to be
able to close the cursor before closing the TQuery component. I get this
error saying
"SL012 [Microsoft][ODBC Cursor Library] HSTMT bindings may not be changed
while a cursor is open"

And it changes the cursor type to Static then i have to change it back to
Dynamic.

Manny

man...@hotmail.com


0 new messages