... ConfigurationSettings.AppSettings["Sql_ConnectString"]); // Create DataAdapter. SqlDataAdapter da = new SqlDataAdapter(sqlText, conn); // Add table mappings. da.TableMappings.Add("Table", ... and data. da.FillSchema(ds, SchemaType.Mapped); da.Fill(ds); // Iterate over the table collection in the DataSet. foreach(DataTable dt in ds.Tables) { schemaInfo.Append("TABLE: " ... da.TableMappings.Add("Table", "Orders"); da.TableMappings.Add("Table1", "Order Details"); // Create the DataSet. DataSet ds = new DataSet( ); // Fill the schema and data....