can we add 2 datatables in dataset ?
-
HI, Can we add 2 datatables in one dataset, each datatable from different database. If so, how we can add at a time. Suppose if i get the datatable using sqlserver database then dataset1 = sqldataset.tables[0]; If i get the datatable from Oracle database then dataset1 = oradataset.tables[0]; is it correct? if so, it doesn't overwrite?
G. Satish
-
HI, Can we add 2 datatables in one dataset, each datatable from different database. If so, how we can add at a time. Suppose if i get the datatable using sqlserver database then dataset1 = sqldataset.tables[0]; If i get the datatable from Oracle database then dataset1 = oradataset.tables[0]; is it correct? if so, it doesn't overwrite?
G. Satish
Hi,
DataSet ds = new DataSet(); ds.Tables.Add(dataTable1); // from 1st database ds.Tables.Add(dataTable2); // from 2nd database
Thanks, Sun Rays To get something you must have to try once. My Articles
-
HI, Can we add 2 datatables in one dataset, each datatable from different database. If so, how we can add at a time. Suppose if i get the datatable using sqlserver database then dataset1 = sqldataset.tables[0]; If i get the datatable from Oracle database then dataset1 = oradataset.tables[0]; is it correct? if so, it doesn't overwrite?
G. Satish