Click here to Skip to main content
15,793,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm looping on a OleDbDataReader in order to get the names and the types of the columns in an MS Access table.

But I need to convert the System.Type returned to OleDbType.

Any Idea??

There is a Method here[^] that does it. There does not seem to be a built in way, or at least I couldn't find one.
Share this answer
But the type you have mentioned OleDbType, it is actually a Enum, then can have only named value.

Now how can you convert your int value 1000 to OleDbType.

I dont think so.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900