In my simple db, I am using SqlCE, and I cannot figure out how to correctly figure out whether the query returns strings or not. HasRowsdoes not work. So far I have this:
_DbCommand.CommandText="SELECT * FROM X"
SqlCeDataReader reader=_DbCommand.ExecuteQuery();
if (reader.FieldCount!=0)
{
while (reader.Read())
{
}
}
thank
source
share