1

I use a dbDataAdapter to populate a DataTable from an unlinked oracle database.

I have a dbDataAdapter that I want to insert rows into an SQL Server table using SQLCommandBuilder.

I have been trying all day to update the DataTable that references the SQL Server table with the data from the Oracle DataTable so that I can insert the rows.

I've been googling all afternoon with no satisfaction. Anyone know how to do this?

4

2 回答 2

0

如果有人偶然发现这一点,我使用 DataTable.Load(OracleDataReader) 填充 DataTable,然后使用 SQLBulkCopy 将行插入数据库。

无需链接服务器

于 2012-05-08T14:49:30.930 回答
0

为什么不使用链接服务器从 SQL 服务器到 oracle,然后使用简单的选择语句。

于 2012-05-06T04:06:02.720 回答