A stored procedure returns multiple tables, the result set is assigned to a DataSet
. Can I access the tables in the DataSet
with each table's name?
For eg.:-
DataSet ds = Select(despatch_Packing_ID);
The DataSet
contains 4 tables.
I am imposed to access the tables as
DataTable dtSales = ds.Tables[0];
How can I access the DataTable
as
DataTable dtSales = ds.Tables["Sales"]; // Sales is tables where from I get data