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

Purpose of relations in datasets?

I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? What's the purpose? Is it just a 'reminder' or does it
have an effect on whether the pk/fk constraints are enforced or not at the
db level???

Thanks
Nov 1 '08 #1
6 1402

Here is an article:
http://msdn.microsoft.com/en-us/libr...3d(VS.80).aspx

I would say that the GetChildRows based on the relationship (name) is kinda
the useful method from my experience:
http://msdn.microsoft.com/en-us/libr...ws(VS.80).aspx

So if you have Orders and OrderDetails, and you name the relationship
"OrderToOrderDetailsRelationship"....you can use that name to pull the child
records of course.

This is kinda obvious observations, I'm just expressing what I've used in
the past with that exact feature.

If you write a self referencing relationship, you can use this to populate
something like a TreeView.

"Bobby Edward" <bo***@nobody.comwrote in message
news:Oi**************@TK2MSFTNGP04.phx.gbl...
>I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? What's the purpose? Is it just a 'reminder' or does
it have an effect on whether the pk/fk constraints are enforced or not at
the db level???

Thanks

Nov 1 '08 #2
On Nov 1, 1:28*am, "Bobby Edward" <bo...@nobody.comwrote:
I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? *What's the purpose? *Is it just a 'reminder' or does it
have an effect on whether the pk/fk constraints are enforced or not at the
db level???

Thanks
Could be useful with nested controls, for example when you have a
Repeater with a nested GridView
http://groups.google.com/group/micro...f1f7a4128c5ad7
Nov 1 '08 #3
On Nov 1, 1:28*am, "Bobby Edward" <bo...@nobody.comwrote:
I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? *What's the purpose? *Is it just a 'reminder' or does it
have an effect on whether the pk/fk constraints are enforced or not at the
db level???

Thanks
Could be useful with nested controls, for example when you have a
Repeater with a nested GridView
http://groups.google.com/group/micro...f1f7a4128c5ad7
Nov 1 '08 #4
On Nov 1, 1:28*am, "Bobby Edward" <bo...@nobody.comwrote:
I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? *What's the purpose? *Is it just a 'reminder' or does it
have an effect on whether the pk/fk constraints are enforced or not at the
db level???

Thanks
Could be useful with nested controls, for example when you have a
Repeater with a nested GridView
http://groups.google.com/group/micro...f1f7a4128c5ad7
Nov 1 '08 #5
On Nov 1, 1:28*am, "Bobby Edward" <bo...@nobody.comwrote:
I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? *What's the purpose? *Is it just a 'reminder' or does it
have an effect on whether the pk/fk constraints are enforced or not at the
db level???

Thanks
Could be useful with nested controls, for example when you have a
Repeater with a nested GridView
http://groups.google.com/group/micro...f1f7a4128c5ad7
Nov 1 '08 #6
On Nov 1, 1:28*am, "Bobby Edward" <bo...@nobody.comwrote:
I have a fully relational mysql database (pk, fk, etc)

If I setup a xsd dataset with 2 related tables do I have to create the
relation there too? *What's the purpose? *Is it just a 'reminder' or does it
have an effect on whether the pk/fk constraints are enforced or not at the
db level???

Thanks
Could be useful with nested controls, for example when you have a
Repeater with a nested GridView
http://groups.google.com/group/micro...f1f7a4128c5ad7
Nov 1 '08 #7

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

Similar topics

1
by: Woody Splawn | last post by:
I don't mean to crosspost but I really don't know where questions on yellow view Schema window in VS belong. If someone has a better suggestion for a newsgroup please let me know. All I do...
1
by: Iain | last post by:
I'm struggling to create a typed data set (with xsd.exe) with 4 tables and 3 layers orders -> Items Items->ItemAtts1 Items->ItemAtts2 if you follow me. it's kind of working, but I don't...
1
by: Jef De Rycke | last post by:
Hi access group, I have written code to create relations between tables according to a corresponding relations information table. At first I thought my code was not working properly because...
0
by: Darren Clark | last post by:
I am trying to understand typed datasets more.... and i am stuck on a little problem I have created a type dataset called "News" this consists of 2 tables. NewsTable and NewsTypes. the news...
0
by: Joe Van Meer | last post by:
Hi all, I have a question regarding data relations within a data set. Say I have 3 tables named CLIENT, BOOKING and EMPLOYEE and I wanted to relate the first two tables (CLIENT AND BOOKING)...
1
by: a | last post by:
Hey, I am building a Database App using VB.NET instead of MSAccess. I need some tips for the data access strategy. I like the 'Microsoft Application Blocks for .NET' approach, but am curious...
1
by: Randy Fraser | last post by:
How do I create a relationship on muliple columns in an untyped dataset. Why does this not work. da.Fill(ds) ds.Tables(0).TableName = "DesignSummary" ds.Tables(1).TableName = "FormulaSummary"...
9
by: Mr Newbie | last post by:
HI People, Thanks to all who helped me earlier on the subject of @@IDentity. However, I seem to have hit another snagette! My DataSet contains two tables from the SQL Server. lets say Master...
0
balabaster
by: balabaster | last post by:
I have my SQL database with the following structure: Table1( PrimaryKey Int Not Null Identity(1, 1) Primary Key, TextData Varchar(50) Not Null ) Table2( PrimaryKey Int Not...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
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,...
0
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...

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.