If rdr.Read() Then strResult = rdr.GetString(1) End If
rdr.Close() conn.Close()
I did quite a bit of searching and got no results. Thanks.
Drudkh
No, there's no shortcut to getting the count of rows in a table. I recommend doing a SELECT COUNT(*) and use ExecuteScalar to get the best performance on this query.
-Darren Shaffer
.NET Compact Framework MVP
Darren Shaffer
Thanks Darren. Looks like I have no other choice. :)