Possible Duplicate:
How to test if a DataSet is empty?
I'm executing these lines
string commToExc = @"SELECT * FROM Test WHERE id = 500;";
MySqlCommand cmdSQL = new MySqlCommand(commToExc, conMYSQL);
MySqlDataAdapter zipcode = new MySqlDataAdapter(cmdSQL);
DataSet setTest = new DataSet("Test");
I'm taking data by their rows id.
everthing works fine, i get the results i want but i have question.
For example in db id
= [1-500]. But i request row with id = 501 and i get 0 results back.
Whats is the way to know when I got 0 results? Thnx