SQLCE

  • Thread starter Thread starter Peter
  • Start date Start date
I think you have a few choices.

Use a Dataset and then ds.Tables["table"].Rows.Count will
have the count.

Execute the same sql command but with select count(column)
first.
 
Look up the SqlCeDataReader class in the help. There is an example in
the About. Basically, your SqlCeCommand select query will return an
SqlCeDataReader object which you will use to iterate through affected
rows. If Zero rows are affected, the read() function returns false
immediately.

Joe Zhang
 
Back
Top