Quantcast
Channel: User shenn - Stack Overflow
Viewing all articles
Browse latest Browse all 40

Fill DataSet with DataTable

$
0
0
private static DataSet GetAuctionItemsDataSet(){    SqlDataAdapter adapt = new SqlDataAdapter();    adapt = DataAdapter;    DataSet filler = new DataSet();    adapt.Fill(filler.Tables["AuctionItems"]);    adapt.Fill(filler.Tables["Bids"]);    return filler;}

I want the the SqlDataAdapter to populate a new DataSet with records from the db. The DataSet should contain tables "AuctionItems" and "Bids" I think I am close but cannot seem to find the answer.


Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>