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

Relations in Datasets

a
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 about relationships.

As an example, one section will be Document Tracking. A Document has one
Author (int field in the tblDoc table), one Type (int field in the tblDoc
table), possibly many WorkAreas (Many_to_Many with another table).

Am I better off manually grabbing DataSets, one for each int field, and then
manually binding 'dropdown' boxes on my form, or should I use Relationships
in the DataSet?

Also, I need some input about the ManyToMany deal. Is a PopUp form the best
way to go?

Please Advise.
Kevin
Nov 20 '05 #1
1 1106
Hi Kevin,

When deal with Many-to-Many relationship, it is better to convert it to
"one to many to one". For example, we have a "Books" table and a "Author"
table. A book may have multiple authors and an author can have many books:

Books
---------------------
BookID, AuthorID

Authors
---------------------
AuthorID, BookID
You may add one table "BooksToAuthors", to present the relation between
Books and Authors. The three tables will be like:

Books
---------------------
BookID

Authors
---------------------
AuthorID

BooksToAuthors:
---------------------
BooksToAuthorsID
BookID
AuthorID

hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 20 '05 #2

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: 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...
2
by: Joe | last post by:
Hi I have a dataset with 3 tables and 2 relations Is there a way to when I am at 1 row to tell if there is a relation on that row ??? I have the code hardcoded but try to make it work if the #...
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...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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...

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.