Answers

Question and Answer:

  Home  ADO.NET

⟩ How can we load multiple tables in to Dataset?

DataSet ds=new DataSet();

SqlDataAdapter dap=new SqlDataAdapter(Select * from <tablename>,<connection1>);

dap.Fill(ds,"TableOne");

SqlDataAdapter dap1=new SqlDataAdapter(Select * from <tablename>,<connection1>);

dap1.Fill(ds,"tableTwo");

 150 views

More Questions for you: