Q

Inserting a table from PL/SQL to SQL Server

I have a PL/SQL procedure in an Oracle database. The procedure has some business logic. Based on the business logic it retrieves a few rows. I also have a very simple SQL Server database table where I want the results populated.

In a simple way, I want to insert a table from a PL/SQL Oracle procedure into SQL Server.

You can use ODBC to create a database link from Oracle to SQL Server. Your DBA can help you create the database link from Oracle to SQL Server. Using the database link you can create a synonym in Oracle for the table you want to reference in PL/SQL and use that in your PL/SQL code (Please note from SQL Server to Oracle it is called a linked server).
This was last published in March 2004

Dig Deeper on Using Oracle PL-SQL

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close