Solved

Working with SQL Server and Oracle in C#

Posted on 2007-03-18
2
247 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
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 142

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now