Solved

Working with SQL Server and Oracle in C#

Posted on 2007-03-18
2
251 Views
Last Modified: 2013-12-19
Is it possible to do this:
INSERT INTO <OracleDatabase.TableA> SELECT * FROM <SQLServerDatabase.TableA>

I mean to populate a same table in Oracle by rerieving first from the SQL Server using C#?

0
Comment
Question by:novknow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:dacz
ID: 18746165
1 . create a stored procedure in SQL Server
2.  create a recordset and  populate it.
3.  connect to oracle database then insert the recordset to the oracle table.
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 18746364
if you can create a linked server to Oracle on your sql server, then you can do that on sql server:

insert into linked_oracle_server..schema_name.table_name ( <column names> )
select ( <column names> ) from your_sql_table
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question