Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / January 2006

Tip: Looking for answers? Try searching our database.

Dataset creation problem.........

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sendtobiren@gmail.com - 31 Jan 2006 07:04 GMT
Hi All,

I have two access databases. First contains a table which contains
userids. The second one contains the users records.

I tried to create a dataset which will query in these two databases and
get two datatables. I tried to add relation between these two
datatables.

But while setting the relationship it gives error because each & every
records in the first table does not contain related records in the
second table.

e.g.

Table 1                                     Table 2
---------------------------  --------------------------------------
Id       UserId            UserId              UserName
---------------------------  -------------------------------------
1        1001               1001                User One
2        1001               1002                User Two
3        1002               1003                User Three
                               1004                User Four

Can anyone help me in this issue...............

Thanks,
Biren.
Cor Ligthert [MVP] - 31 Jan 2006 07:45 GMT
Biren,

This should not be possible if you have a relation.

I know that in real live with children from who the parents are missing this
happens as well, however in a database you should in my opinion create in
those cases a parent with the name "Parent Missing".

You can choise in this by creating it in your database or in your datatable
extra rows by first looping through your Table2, use that to find the parent
in table1 and if that one does not exist create a dummy one. (it is up to
you if you do update that one in your database).

Than you can set the relation.

I hope this helps,

Cor
CLR - 31 Jan 2006 16:17 GMT
I think this problem is similar to what I have encountered in the past.  Is
it possible to use a LEFT OUTER JOIN with Access (like in TSQL?) Putting it
into your read procedure you could thus create one table in your dataset

> Hi All,
>
[quoted text clipped - 24 lines]
> Thanks,
> Biren.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.