getting the parameters' type

M

Mr. x

Hello,
I am using .NET.
My database is access, and I am using oleDBConnection.
suppose I have the query :
"update myTable set mycol1= ?, mycol2 = ?".

I want to set the paraterers a value, and for that I need to know before I
am setting them a value, which type are the parameters.

Is there any way to parse the query, and retrieve somehow the parameters'
types, before I am setting them a value ?
(I don't know whethere the parameter's type is oledbtype.Integer, or
oledbtype.varchar, etc... - Is there any way I can know this before I am
setting the parameters of "?" a value ?).

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top