Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View to Select Union
Message
From
24/10/2003 14:16:49
 
 
To
24/10/2003 14:11:08
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00842327
Message ID:
00842364
Views:
26
No, AFAIK you can't do SELECTs and UNIONs and stuff like that with a DataSet. I'm still unclear as to what your data structure is, so maybe you can elaborate a little more.

~~Bonnie



>>OK, so if I understand you correctly, your WS is returning a new set of speakers for every call to it and you want to add those all together?
>>
>>How about using ImportRow to append to your table or your view? Something like this:
>>
>>DataRow row;
>>dsMySpeakers = oWS.MyWebServiceCall();
>>for (int i=0; i < dsMySpeakers.Tables["Speakers"].Rows.Count; i++)
>>{
>>    row = dsMySpeakers.Tables["Speakers"].Rows[i];
>>
>>    // If your full list of speakers is a Table
>>    ds.Tables["AllSpeakers"].ImportRow(row);
>>
>>    // If your full list of speakers is a View
>>    dvAllSpeakers.Table.ImportRow(row);
>>}
>>
>
>I'll keep this sample for further references. But, for now, in one method call, the DataSet contains, for example, 10 meetings. In each meetings, I usually have one speaker but sometimes we have three. So, 10 records but, in reality, I might have 16 speakers. So, from the DataSet, I need to be able to do another SELECT on it with a UNION approach. We do that in VFP. I guess we can do that in here as well. :)
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform