R
Robert C. Cain
Hi All,
OK, here's what I need to do:
I have an Oracle database. I am going to write a VB.Net application that on
a regular basis will grab a table, and copy it down to Access. I'd like to
maximize reuse by creating a generic routine that will:
Open the Oracle Table
Cycle through each field in the table, getting it's name, datatype, size,
and adding them to a string. This string will become an Create Table sql
statement for Access. (Naturally I'll have to do some translation, VarChar
to Text, etc).
Create the table in Access, then copy each row over.
I know I can do this with traditional ADO, I've done it before. My question
is, can I do this with ADO.NET? I'd like to use the newer ADO.NET just for
the learning experience, but so far every book I've picked up only shows you
how to open a table and get the rows, and maybe update. Nothing on getting
field types, etc.
So before I spend a lot of time on this, is it possible? And if so, has
anyone seen any good articles out there on viewing table structures under
ADO.NET?
Thanks,
Robert
OK, here's what I need to do:
I have an Oracle database. I am going to write a VB.Net application that on
a regular basis will grab a table, and copy it down to Access. I'd like to
maximize reuse by creating a generic routine that will:
Open the Oracle Table
Cycle through each field in the table, getting it's name, datatype, size,
and adding them to a string. This string will become an Create Table sql
statement for Access. (Naturally I'll have to do some translation, VarChar
to Text, etc).
Create the table in Access, then copy each row over.
I know I can do this with traditional ADO, I've done it before. My question
is, can I do this with ADO.NET? I'd like to use the newer ADO.NET just for
the learning experience, but so far every book I've picked up only shows you
how to open a table and get the rows, and maybe update. Nothing on getting
field types, etc.
So before I spend a lot of time on this, is it possible? And if so, has
anyone seen any good articles out there on viewing table structures under
ADO.NET?
Thanks,
Robert