How to copy SQL table to oracle?
Posted: Thu 10 Jan 2013 13:07
Hi,
I want to copy a SQL data to oracle. Just like SqlBulkCopy copies data to the table. I have tried by using OracleLoader however no luck. It throws data type error that it does not found varchar2 etc. below is the code that I am using for oracleloader.
Do anybody have idea how to copy sql data to oracle table?
using (var connection = new OracleConnection(connection String)
{
connection.Open();
var loader = new OracleLoader("MyTable", connection);
loader.Open();
loader.LoadTable(table);
loader.Close();
}
I want to copy a SQL data to oracle. Just like SqlBulkCopy copies data to the table. I have tried by using OracleLoader however no luck. It throws data type error that it does not found varchar2 etc. below is the code that I am using for oracleloader.
Do anybody have idea how to copy sql data to oracle table?
using (var connection = new OracleConnection(connection String)
{
connection.Open();
var loader = new OracleLoader("MyTable", connection);
loader.Open();
loader.LoadTable(table);
loader.Close();
}