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 / ASP.NET / Caching / April 2007

Tip: Looking for answers? Try searching our database.

Left joins on DataSets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Feek - 20 Apr 2007 17:54 GMT
I have some tables from a proprietary ODBC source that I read into Datasets.
Because of limitations on this source, only a single LEFT JOIN can be used at
a time in the SQL to fill the Datasets. What I'd like to do is to take two
Datasets created from LEFT JOIN statements, and LEFT JOIN those to make
another Dataset that would basically have all the information it would have
if I was able to do multiple JOINs.

What's the recommended way to do this...just using regular loops is making
the program run way too slow. Right now it's at 30 minutes, and I need it
under 5.
Feek - 20 Apr 2007 17:56 GMT
P.S. Please let me know if this is in the wrong group.

> I have some tables from a proprietary ODBC source that I read into Datasets.
> Because of limitations on this source, only a single LEFT JOIN can be used at
[quoted text clipped - 6 lines]
> the program run way too slow. Right now it's at 30 minutes, and I need it
> under 5.
Alvin Bruney [MVP] - 22 Apr 2007 21:15 GMT
hmmm, regular loops would work but that's kinda tedious. If your database
supports it, you should do it by creating a temp table or a sub query. That
would give you the joined dataset. If the dataset does not support it, you
can create a temporary dataset and merge the two datasets into one using
filters. That's a lot of work though.

Signature

Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

> P.S. Please let me know if this is in the wrong group.
>
[quoted text clipped - 13 lines]
>> the program run way too slow. Right now it's at 30 minutes, and I need it
>> under 5.

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.