Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read from Oracle with a SQL Stored Proc 1

Status
Not open for further replies.

alexm

Programmer
Oct 9, 2000
4
0
0
ZA
Hi,

I have a little situation - I need to read from an Oracle database and populate SQL Server tables with the info received from Oracle - is there anyway to read from and Oracle DB from within SQL Server?

Thanks
alexm [sig][/sig]
 
alexm,

What you are looking to do is create a linked server. Using ODBC you can create a linked server using the sp_addlinkedserver stored procedure. You then create a login for the server using the sp_addlinkedsrvlogin.
The last set is to create a view based on the linked server. For more information you can check out "Creating Heterogenous Query with Microsoft SQL Server 7.0" in the MS Knowledge Base. This document will give you step by step instructions for working with Ocacle data from within SQL Sever.
Good Luck

Joe Kurtz [sig][/sig]
 
Hi Joe,

Thanks alot, much appreciated.

Alex [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top