473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Issue Select statement to read Oracle table from SQL Server

63
I created an ODBC connection with the Microsoft ODBC for Oracle driver and
successfully connected to Oracle from Microsoft Access by creating a pass
through query. Can I use this connection from within SQL Server 2000 to
issue a Select statement and pull data from an Oracle table? i.e. Select *
from Oracle.dbo.<table Name>
Jun 15 '08 #1
3 2673
Delerna
1,134 Expert 1GB
One way is to do it through DTS. Just create a connection in the DTS designer and set it up to use your ODBC.
Of course this is only useful to download/upload data to or from a SQL Server table or view
Jun 16 '08 #2
Delerna
1,134 Expert 1GB
I think another way would be to link to the server under security/linked servers

I think you can connect through ODBC there. I have never done it myself. Anyone?


Anyway, you can query a linked server's tables directly in query analyser,stored procs, views....

Expand|Select|Wrap|Line Numbers
  1. select *
  2. from LinkedServerName.msdb.dbo.TableName
  3.  
Jun 16 '08 #3
rmurgia
63
One way is to do it through DTS. Just create a connection in the DTS designer and set it up to use your ODBC.
Of course this is only useful to download/upload data to or from a SQL Server table or view
Thank you for the response. I was able to create a connection through DTS, however, when I set up a transform task, the system hung when I clicked on properties. I checked on the web and found someone with a similar issue, who was told to have the Oracle drivers installed in SQL Server. I checked with our DBA and he was unwilling to install the Oracle drivers in SQL Server, so I am restricted to trying to do this with an SQL Statement.
Jun 16 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Khurram Rao | last post by:
using MS Sql server and VB i can execute two queries Insert and select in one statement e.g. (insert into (....) values (...) Select @@Identity). how can i do the same thing using Oracle and VB....
12
by: Andrew Baker | last post by:
What is the best way to lock an individual row in the following scenerio: --TODO - LOCK THIS ROW -- Return the next id SELECT next_id INTO next_id_out FROM owner.my_id_table WHERE app_id =...
5
by: jayson_13 | last post by:
Hi, I need to implement a counter and i face problem of locking so hope that u guys can help me. I try to do test like this : 1st connection SELECT * FROM nextkey WHERE tblname = 'PLCN'...
9
by: bc | last post by:
Hello all, Background: I've posted a couple questions recently regarding using BCP to extract many tables to text files. I've written an extract application that bcp's about 100 tables from a...
1
by: philipdm | last post by:
Ok, I have a data warehouse that I am pulling records from using Oracle SQL. I have a select statement that looks like the one below. Now what I need to do is where the astrics are **** create a...
7
by: peter.morin | last post by:
Issue: I am inserting an Oracle record containing insert trigger via Access 2002 using the code below. The issue is that the sequence from the acSaveRecord is not reflected after the insert so...
19
by: Steve | last post by:
ASP error number 13 - Type mismatch with SELECT...FOR UPDATE statement I got ASP error number 13 when I use the SELECT...FOR UPDATE statement as below. However, if I use SELECT statement without...
1
by: Magnus Flisberg | last post by:
Best programmer, My mission is to execute a sql statement in vb.net and retrive the data into a file. I have managed to detect som issues with my code: queryString = "SELECT ...." ...
0
by: Shades799 | last post by:
Hi All, I was wondering if any of you could help me with a very difficult problem that I am having. I have an ASP site that works with an Oracle database using an ADODB connection. This...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.