Connecting to a Oracle DB using MS SQL Opendatasource

Posted on 2005-05-10
Medium Priority
Last Modified: 2008-01-09
I am wanting to dump some data from a Oracle DB into a SQL temp table to use in other MS SQL queries. Can this be done?
Question by:JHankinson

Expert Comment

ID: 13975583
because you want to move data from Oracle to SQL and not the other way round maybe you should post this on the Oracle
LVL 19

Accepted Solution

Melih SARICA earned 1000 total points
ID: 13976740
yes u can do this..

2 ways..
 One is adding oracle as a linked server..
   EXEC sp_addlinkedserver
   'LONDON Mktg',

and running ur query like
select * into   #temptable from (select  * from (openquery([London Mktg], 'select * from my oracle table')) drv

other way is

select * from
      OPENrowset('MSDAORA','Oracle SID';'username';'password','my select query') drv


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

807 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