been trying to get a simple web service running but DataSet returns weird results. My code is much like all the tutorials/examples:
SqlConnection CBMCon = new SqlConnection(cString);
CBMCon.Open();
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.set_SelectCommand(new SqlCommand("SELECT xxxFROM yyy, nodeInfo WHERE zzz = 47", CBMCon));
DataSet result = new DataSet();
adapter.Fill(result);
the problem is, this returns multiple tables with 1 entry each, rather than 1 table with multiple rows. Am I missing something?
SqlConnection CBMCon = new SqlConnection(cString);
CBMCon.Open();
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.set_SelectCommand(new SqlCommand("SELECT xxxFROM yyy, nodeInfo WHERE zzz = 47", CBMCon));
DataSet result = new DataSet();
adapter.Fill(result);
the problem is, this returns multiple tables with 1 entry each, rather than 1 table with multiple rows. Am I missing something?