Tuesday, March 27, 2012

count number of rows in asp.net

hey, how would i count the number of rows, with out using a loop??
thanks, JustinSELECT COUNT(*) FROM MyTable|||SELECT COUNT(*) FROM MyTable
ok, so i added COUNT(*) to my SELECT * statement, and i get this error:
Exception Details: System.IndexOutOfRangeException: booking_id...and the only value in booking_id is 1, and there is only one result returned...

No comments:

Post a Comment