473,320 Members | 1,695 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,320 software developers and data experts.

DataRelation General Question

This is taken from MSDN Documentation:

It is important to understand the difference between a true join and the
function of a DataRelation object. In a true join, records are taken from
parent and child tables and put into a single, flat recordset. When you use a
DataRelation object, no new recordset is created. Instead, the relation
tracks the relationship between tables and keeps parent and child records in
synch.

That being said, is there an equivelant to an SQL join for the DataSet? I'm
thinking something where rows from different but related tables are snapped
togetherinto a signle view and you can just refer to different columns within
a single rowset, rather than have to call GetChildRows or GetParentRow and
deal with the separate entity. Just wondering. Thanks...
Nov 22 '05 #1
4 1451
Ben,

Can you show me that page where recordset is used in combination with the
datarelation, it interest me.

And therefore answering is a little bit difficult, because than I don't
understand what you ask and becomes it a lot of guessing.

Cor
Nov 22 '05 #2
Hi Cor,

Thanks for your reply. I actually don't have a code segment that is giving
me trouble. I'm able to do what I need to with the GetParentRow function. I
was just curious if there is a way to do something that is more like an SQL
join so that you could sort of dynamically create a datatable (or maybe a
dataview) that would consist of rows froim two or more tables snapped
together via their relationship(s). It's similar, but seems like it could be
easier for data retrieval.

-Ben

"Cor Ligthert" wrote:
Ben,

Can you show me that page where recordset is used in combination with the
datarelation, it interest me.

And therefore answering is a little bit difficult, because than I don't
understand what you ask and becomes it a lot of guessing.

Cor

Nov 22 '05 #3
Ben,

AFAIK and understand you can you create one table using join from more
databasetables, however you cannot use that table in a dataadapter update.

Cor
Nov 22 '05 #4
If you seriously want to work with a joined table set, use a SQL view with
all the necessary joins. To keep the adapter update happy, you would then
create insted_triggers in T-SQL to handle the on update, edit and delete
request returning to the server.

"Cor Ligthert" wrote:
Ben,

AFAIK and understand you can you create one table using join from more
databasetables, however you cannot use that table in a dataadapter update.

Cor

Nov 22 '05 #5

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

Similar topics

4
by: Ben R. | last post by:
This is taken from MSDN Documentation: It is important to understand the difference between a true join and the function of a DataRelation object. In a true join, records are taken from parent...
3
by: serge calderara | last post by:
Dear all, I have a dataset which contains 2 DataTable The idea is to bind a text box control with one table field and then diaplaye the associated content of the second table based on the first...
1
by: serge calderara | last post by:
Dear all, I have an access database which is access by an application. From a remote PC using vb.net I am able to access to this database and collect necessary data. I need to make the remote...
1
by: yaser | last post by:
Hello: I need save my update but i can't :confused: :confused: :confused: look my code : Imports System.Data Imports System.Data.OleDb Public Class Form1
0
by: Stefan | last post by:
I need help with the following problem. I created a datarelation DataRelation oRelation = new DataRelation("plz_relation",odsAdressenDS.v_plz.plz_idColumn,...
0
by: Fox | last post by:
Is it possible to get back the DataRelation contect from a dataSet? { DataRelation myDataRelation; DataColumn parentColumn; DataColumn childColumn; parentColumn = myDataSet.Tables.Columns;...
2
by: Christopher Weaver | last post by:
I've filled a DataSet with two tables then established a DataRelation; all is well because the backend includes RI rules that ensure that no record on the detail side will be without a master...
1
by: Johann Blake | last post by:
I have a dataset that contains a parent table and a child table. A DataRelation exists between the two. I was under the impression from reading the VS docs that when I filled the parent table, the...
4
by: Kevin Davis via DotNetMonster.com | last post by:
Aloha, I have a question when using the Datarelation. I built a dataset and need to use the Datarelation to build parent-child relationships. I have events that may or may not use resources. ...
2
by: Rich | last post by:
Hello, Following an example at http://www.vb-tips.com/dbpages.aspx?IA=DG (by Cor Lightert and Ken Tucker) on binding a dataRelation to a Datagridview for sqlClient, I was able to view rows...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.