I thought that a parmeterized query to an access database utilized
parameter position and not name. However, I find that I can not get a
successful ExecuteNonQuery() result unless the names of the parameters
added to the oledbcommand.parameters.add("Name", OLEDBType) statements
match the name of the parameter in the access database. Needless to
say, position also is required. Am I getting this wrong or do name in
addition to position matter?
Thanks, E Bender

Re: OledbCommand queries by MS

MS
Wed Sep 08 16:25:51 CDT 2004

Parameterized query should work even the names of parameters don't match the
column names. Could you share your statement and parameter settings so we
can take a look?

Thanks,
Kevin
"Edward Bender" <ebender001@charter.net> wrote in message
news:2004090721420788700%ebender001@charternet...
>I thought that a parmeterized query to an access database utilized
>parameter position and not name. However, I find that I can not get a
>successful ExecuteNonQuery() result unless the names of the parameters
>added to the oledbcommand.parameters.add("Name", OLEDBType) statements
>match the name of the parameter in the access database. Needless to say,
>position also is required. Am I getting this wrong or do name in addition
>to position matter?
> Thanks, E Bender
>