Monday, 28 May 2012

Multiple select statement for sqldataadapter

    SqlDataAdapter adapter = new SqlDataAdapter(
      "SELECT * FROM Customers; SELECT * FROM Orders", connection);
            adapter.TableMappings.Add("Table", " Customers ");
            adapter.TableMappings.Add("Table1", " Orders ");

            adapter.Fill(ds);
        }

No comments:

Post a Comment