|
-
Dec 13th, 2007, 11:08 PM
#1
Thread Starter
Hyperactive Member
ms access to oracle
hello!
i have data in ms access (.mdb) i want to transfer the data
in oracle how would i do that?
tnx
*****************
VB6,PHP,VS 2005
-
Dec 14th, 2007, 12:26 AM
#2
Re: ms access to oracle
How do you get data from Access? Use a DataAdapter to populate a DataTable. How do you get data into Oracle? Use a DataAdapter to insert the contents of a DataTable.
You only need one DataTable, because it doesn't care where the data comes from or goes to. You only need one DataAdapter too, assuming you have an OLEDB provider for Oracle installed. You just need two Connections: one each for the SelectCommand (Access) and the InsertCommand (Oracle).
Just make sure you set the AcceptChangesDuringFill property of the DataAdapter to False. That way the RowState of each DataRow will remain Added and they will each get inserted into the Oracle database when you call Update.
-
Dec 14th, 2007, 01:01 AM
#3
Thread Starter
Hyperactive Member
Re: ms access to oracle
ok, i'll remember now. thank you
*****************
VB6,PHP,VS 2005
-
Dec 14th, 2007, 07:48 AM
#4
Re: ms access to oracle
Is this something that you are going to need to do on an ongoing basis?
If so, then I can see the need for writing code for it. However, if this is just a one time data migration thing, then doing a direct import using Oracle tools would seem a simpler approach.
-
Dec 14th, 2007, 08:41 AM
#5
Re: ms access to oracle
If this is a one off run it is probably easiest to connect directly to Oracle from MS Access (using ODBC) and placing the data where you want it.
Sometimes the Programmer
Sometimes the DBA
Mazz1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|