Quote:
i want difference b/w dataset and datatable in this example.both concepts will work
If your
Query
or
Stored procedure
is returning a
single table then you shall go for
DataTable
da.fill(dt)
If it returns multiple tables then use
DataSet
da.fill(ds)
the number of table returned from the
query/procedure
will be assigned to the Number to DataTables inside the DataSet dynamically, which you can access the DataTable using the index of the table, as
var table1 = ds.Tables[0];
var table2 = ds.Tables[1];
for more info on theory part refer
DataSet vs DataTable[
^]