Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Dataset question
Message
From
02/08/2002 13:08:50
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00685449
Message ID:
00685564
Views:
31
Kevin,

>>Is there a 'simpler' way to do this?<

Seems pretty simple to me to use the DataAdaper.Fill(). And no, to answer your question, there is no simpler way. <g>

~~Bonnie

>I'm glad you thought that was a good question, because (now) I have a really stupid question.
>
>If I want to do an SQL query and bring back the results in a dataset, do I *have* to use the data adapter?
>
>I have a form where I need to bring back 3 data tables...so I do a
>
>MyAdapter = new SqlDataAdapter("SELECT * FROM TABLE1; SELECT * FROM TABLE2; SELECT * FROM TABLE3,MyConnection)
>
>DsReturn = new DataSet();
>MyAdapter.Fill(DsReturn,"whatever");
>
>Is there a 'simpler' way to do this? About the only requirement is that it has to be a dataset, it can't be a data reader.
>
>Thanks,
>Kevin
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform