HighTechTalks DotNet Forums  

Left joins on DataSets

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Left joins on DataSets in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Feek
 
Posts: n/a

Default Left joins on DataSets - 04-20-2007 , 12:54 PM






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.


Reply With Quote
  #2  
Old   
Feek
 
Posts: n/a

Default RE: Left joins on DataSets - 04-20-2007 , 12:56 PM






P.S. Please let me know if this is in the wrong group.

"Feek" wrote:

Quote:
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.


Reply With Quote
  #3  
Old   
Alvin Bruney [MVP]
 
Posts: n/a

Default Re: Left joins on DataSets - 04-22-2007 , 04:15 PM



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.

--
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


"Feek" <Feek (AT) discussions (DOT) microsoft.com> wrote

Quote:
P.S. Please let me know if this is in the wrong group.

"Feek" wrote:

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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.