G
Guest
Hi
In the following code, I get an Error when I try to Fill the Dataset
String sql = "SELECT * FROM Table1 UNION SELECT * FROM Table2 UNION SELECT * FROM Table3"
SqlDataAdapter earnAggAdapter = new SqlDataAdapter(sql, con)
earnAggAdapter.Fill(tempDS, "Earnings"); // I get a "System Error" her
If I try with only the Union of Table1 and Table2 it works
Does that mean that the DataAdapter does not support more than one Union in the same statement
Is there another way to make this work
thanks
Jane
In the following code, I get an Error when I try to Fill the Dataset
String sql = "SELECT * FROM Table1 UNION SELECT * FROM Table2 UNION SELECT * FROM Table3"
SqlDataAdapter earnAggAdapter = new SqlDataAdapter(sql, con)
earnAggAdapter.Fill(tempDS, "Earnings"); // I get a "System Error" her
If I try with only the Union of Table1 and Table2 it works
Does that mean that the DataAdapter does not support more than one Union in the same statement
Is there another way to make this work
thanks
Jane