471,579 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,579 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 4005
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by David Gray | last post: by
14 posts views Thread by Sudhesh Nayak | last post: by
2 posts views Thread by Pardhasaradhy | last post: by
1 post views Thread by MartyP | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

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.