473,405 Members | 2,354 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,405 software developers and data experts.

SQL Server + Oracle Data linked in one query

I need to link some data from SQL Server 2005 with Oracle 10 data.

One way is to link Oracle server to SQL Server and use ROWSOURCE for
retrieving data.

What other ways for joing data from both databases exist ?

Can I do it from SQLCRL VB - Stored Procedure ? If yes, what objects
shall I use for opening database and running an sql ?

Thanks a lot.

Jun 8 '06 #1
3 4155
I know it's a similiar concept but how about via linked servers?

Mark Graveline
mg********@sqlchallenge.com
http://www.sqlchallenge.com
*** Where Only The Best Technical Professionals Compete

Chris wrote:
I need to link some data from SQL Server 2005 with Oracle 10 data.

One way is to link Oracle server to SQL Server and use ROWSOURCE for
retrieving data.

What other ways for joing data from both databases exist ?

Can I do it from SQLCRL VB - Stored Procedure ? If yes, what objects
shall I use for opening database and running an sql ?

Thanks a lot.


Jun 8 '06 #2
Thanks Mark, I tried the linked servers. I have read permission on
oracle tables (from VB .NET I have no problem executing queries on
tables and retrieving data) but when I execute

select * from RAS...PRODUCT

I get the error "The OLE DB provider "MSDAORA" for linked server "RAS"
does not contain the table "COUNTRY". The table either does not exist
or the current user does not have permissions on that table.

For exec sp_tables_ex 'RAS','product'

NULL MyUser PRODUCT SYNONYM NULL

Do I need different permissions for linked server ?

Saiko Consulting wrote:
I know it's a similiar concept but how about via linked servers?

Mark Graveline
mg********@sqlchallenge.com
http://www.sqlchallenge.com
*** Where Only The Best Technical Professionals Compete

Chris wrote:
I need to link some data from SQL Server 2005 with Oracle 10 data.

One way is to link Oracle server to SQL Server and use ROWSOURCE for
retrieving data.

What other ways for joing data from both databases exist ?

Can I do it from SQLCRL VB - Stored Procedure ? If yes, what objects
shall I use for opening database and running an sql ?

Thanks a lot.


Jun 13 '06 #3
The error appeared because I defined schema name in lowercase.

Jun 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003,...
14
by: Sudhesh Nayak | last post by:
Hi, I have an Oracle (8.1) & a SQL Server 2000 database with Production data. There are situations when I need data from both the databases. My first choice was to link Oracle to SQL and run DTS...
1
by: Jevon | last post by:
I have used Linked Servers to hook up to an Oracle 9i database in SQL Server 2000. I can see all the Tables and Views when I look in the linked server section. I can also run the following SQL...
2
by: Pardhasaradhy | last post by:
Hello, I have a linked server to oracle 7.1 from SQL 2000. when I try to execute simple select statement which returns one row of data using openquery is not fetching the data. After 30 minutes...
8
by: danbredy | last post by:
Hi, I'm attempting to connect to an Oracle database using SQL Server 2005 Express (OS is Windows XP Professional) and having absolutely no luck. Here is the information SQL Plus gives me about...
1
by: MartyP | last post by:
I am using SQL 2000 and/or SQL 2005 to link to an Oracle Db using OPENQUERY. The SQL 2000 box is SP4 on Win2000. I can run a query thru Q.A. for SQL 2000 or I can run an Oracle query thru...
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. I'll still be using my developed Access front ends,...
0
by: aberton | last post by:
Hi all, I am having major performance issues between my linked server and an Oracle10 db. I have created a number of views in my SQL Server database which map to corresponding Oracle tables via a...
0
by: aberton | last post by:
Hi all, I am having major performance issues between my linked server (SQL Server) and an Oracle10 db. I have created a number of views in my SQL Server database which map to corresponding Oracle...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.