I\'m working in Microsoft Visual C# 2008 Express and with SQLite.
I\'m querying my database with something like this:
SQLiteCommand cmd = new SQLiteC
What you request is not feasible -- to quote Igor Tandetnik, my emphasis:
SQLite produces records one by one, on request, every time you call
sqlite3_step. It simply doesn't know how many there are going to be, until on somesqlite3_stepcall it discovers there are no more.
(sqlite3_step is the function in SQLite's C API that the C# interface is calling here for each row in the result).
You could rather do a "SELECT COUNT(*) from myTable where word = '" + word + "';" first, before your "real" query -- that will tell you how many rows you're going to get from the real query.