how to find out the total number of rows in a database through datareader
any guide
any guide
Dim query as string = "select count(*) from table" Dim cmd as new SqlCommand(query,connection) 'use your existing connection cmd.Connection.Open Dim count as Int32 count = cmd.ExecuteScalar() cmd.Connection.Close()
Comment