473,471 Members | 1,981 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Join Oracle and MS SQL tables

Hi all!

Is it possible to join for example Oracle and MS SQL tables in one
dataSet and show it in one dataGrid?
I'm writing in C# and using standard ADO components that come with .NET
platform.
I can put Oracle data into one table in dataSet and MS SQL data into
another table in the same dataSet but I don't know how to join them so I
could show them in one dataGrid (currently I'm showing them in two
different dataGrids which is a bit unhandy)
best regards
Mateusz [PEYN] Adamus
Nov 17 '05 #1
4 2574
What I've generally done is copying the datatables from the Oracle
DataSet into the SQL DataSet (or vice versa) and adding DataRelations
from there. I don't know of a way you could use a DataRelation between
two datasets.

Clint

Nov 17 '05 #2
Clint (cm******@online.nospam) napisał(a):
What I've generally done is copying the datatables from the Oracle
DataSet into the SQL DataSet (or vice versa) and adding DataRelations
from there. I don't know of a way you could use a DataRelation between
two datasets.


Hi

No no. I don't want to create a relation between to DataSets. I have one
DataSet in which I have to tables - one with data from Oracle'a
(table1) and in the second table (table2) I have data from MS SQL. In
this DataSet I create ralation that between these two tables (table1 and
table2).

And it works just fine. When I try to enter some data to table1 DataSet
checks raltions and shows message if there is an error.

But now I have a problem with showing this data. For example:
select table1.city, table2.region from table1, table2 where
table2.regionid = table1.regionid
I don't know how to make such a query on this data set. I can't make it
on database 'couse data is stored in two different datatabse systems
(Oracle and MS SQL).

best regards
Mateusz [PEYN] Adamus
Nov 17 '05 #3

Mateusz [PEYN] Adamus wrote:
No no. I don't want to create a relation between to DataSets. I have one DataSet in which I have to tables - one with data from Oracle'a
(table1) and in the second table (table2) I have data from MS SQL. In this DataSet I create ralation that between these two tables (table1 and table2).

And it works just fine. When I try to enter some data to table1 DataSet checks raltions and shows message if there is an error.

But now I have a problem with showing this data. For example:
select table1.city, table2.region from table1, table2 where
table2.regionid = table1.regionid
Oh - OK, I think I get what you're trying to do. I'm probably wrong,
but I think you might already have the work done for you. If you set up
your datagrid to have columns with keys City and Region, it should pull
from the respective tables and join automatically. Now, I've only done
this with hierarchical grids, so I'm not sure if thats true or not.
I don't know how to make such a query on this data set. I can't make it on database 'couse data is stored in two different datatabse systems
(Oracle and MS SQL).


Well, technically you can with linked servers ... we're being forced to
do that here with some a number of Crystal Reports. Needless to say, I
wouldn't suggest it :)

Nov 17 '05 #4
You might also want to check out this web-site that promises to provide a
..NET component to allow full SQL syntax queries against a DataSet.

http://queryadataset.com

Hope this helps
Ad.
"Mateusz [PEYN] Adamus" wrote:
Clint (cm******@online.nospam) napisał(a):
What I've generally done is copying the datatables from the Oracle
DataSet into the SQL DataSet (or vice versa) and adding DataRelations
from there. I don't know of a way you could use a DataRelation between
two datasets.


Hi

No no. I don't want to create a relation between to DataSets. I have one
DataSet in which I have to tables - one with data from Oracle'a
(table1) and in the second table (table2) I have data from MS SQL. In
this DataSet I create ralation that between these two tables (table1 and
table2).

And it works just fine. When I try to enter some data to table1 DataSet
checks raltions and shows message if there is an error.

But now I have a problem with showing this data. For example:
select table1.city, table2.region from table1, table2 where
table2.regionid = table1.regionid
I don't know how to make such a query on this data set. I can't make it
on database 'couse data is stored in two different datatabse systems
(Oracle and MS SQL).

best regards
Mateusz [PEYN] Adamus

Nov 17 '05 #5

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

Similar topics

0
by: Marco | last post by:
I need to know if is possible to read oracle tables from PostgresSQL (and vice versa). Can someone give me some help? Thanks a lot
6
by: Maital | last post by:
Dear experts, I'm a beginner with ms-access. I have data from 3 years of observations on a certain field, divided into North and South sections. The first table has information for about 600...
1
by: Nolan | last post by:
I've written a module to create an ODBC link to a large number of Oracle tables in an Access database. It works fine when the table appears in only one schema in the database. However, when a...
4
by: Mark D Powell | last post by:
We are running SQL Server 2000 SP3. We have linked servers in use that we use to access Oracle tables. Recently the claim has been made that you can access Oracle tables from within SQL Server...
5
by: jim | last post by:
Hi, I've browsed several posts, but still haven't found the answer I'm looking for. I have one table (A) that contains a list of values I want to return. I have two other tables (B) and (C)...
3
by: kjewell23 | last post by:
Hi. I have look but can't find or understand what I need to do here. I need to join two tables together with a common field which is prdno Here is my code. please help me If I'm doing it wrong. ...
1
by: AccessHunter | last post by:
Please Help.... I have a query with 2 tables, LegalFile and Cases. LegalFile has the field CaseID(Number Field) and Cases has CaseNbr(Text Field). I am trying to find entries that are in...
2
by: Poonam G | last post by:
I need to call oracle meta data tables using MS DOS, and then proceed with the execution of the MS DOS batch files as per the out put from oracle tables. Please let me know if any inputs are there...
1
by: AccessHunter | last post by:
Hi, I have a query to join two tables, Table1 - Case (Text), Division (Text) Table2 - CaseID (Text), Division Num (Number) Please help to convert (Number to text) and join the tables in the...
2
by: positivethinking | last post by:
Hello all I am working with oracle 10i I need to join 3 tables in 1 sql statements. (please see attached) it looks simple, but i have spent many hours without any luck, each table have 3...
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,...
1
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.