if (!mmString.Empty(tableName)) { // Fill the specified table in the DataSet adapter.Fill(ds, tableName); // Store the current select command for the current table in the // DataTable's extended properties this.SaveSelectCommand(ds, tableName, dbAdapter); } else { //Fill dataset, with table being named according to SQL rules adapter.Fill(ds); // Store the current select command for the current table in the // DataTable's extended properties this.SaveSelectCommand(ds, ds.Tables[0].TableName, dbAdapter); }Regards,