A
Andrea Raimondi
Hello.
I'm doing a WebService using ASP.NET with an Access database.
Nothing really fancy, I just want to try and see what I can get to.
Using an Access database(no please, don't tell me that MS is pushing
towards MSDE, since I'm going to have a hoster so no luck with it).
I'm trying to use parameters and looking on Google Groups I found out
that I have to use question marks(?) for parameters.
So far so good, I mean, no problems in using unnamed parameters,
this service isn't complicated so - well - I can live with this
But if I'm here, then it's likely there's a problem... and indeed
there's one, since the "parameters" collection of the OleDBCommand
doesn't get updated. Sigh.
The source of my problem likely relies in the SQL statement I'm writing,
which should be like this:
Insert Into FAQS values(Question,Answer)
That I've translated into:
Insert Into FAQS values(?,?)
But as I said, parameters collection doesn't fill in with the two
items and I'm clueless about what to do.
Any ideas?
Cheers,
Andrew
I'm doing a WebService using ASP.NET with an Access database.
Nothing really fancy, I just want to try and see what I can get to.
Using an Access database(no please, don't tell me that MS is pushing
towards MSDE, since I'm going to have a hoster so no luck with it).
I'm trying to use parameters and looking on Google Groups I found out
that I have to use question marks(?) for parameters.
So far so good, I mean, no problems in using unnamed parameters,
this service isn't complicated so - well - I can live with this
But if I'm here, then it's likely there's a problem... and indeed
there's one, since the "parameters" collection of the OleDBCommand
doesn't get updated. Sigh.
The source of my problem likely relies in the SQL statement I'm writing,
which should be like this:
Insert Into FAQS values(Question,Answer)
That I've translated into:
Insert Into FAQS values(?,?)
But as I said, parameters collection doesn't fill in with the two
items and I'm clueless about what to do.
Any ideas?
Cheers,
Andrew