473,395 Members | 1,639 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,395 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 1455
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.