S
Steve
Hello,
I have a table in a sql server db that contains thousands
of records. So, I don't want to fill a dataset with
thousands of records. But I would like to get the count
of records in the table. One way I can think of would be
to use an ADO recordset object and set that to a command
object with command.Text = "Select Count(*) From tbl1"
But I understand ADO.Net is (or has) phased/ing out the
recordset object. So what is the correct way to get the
count of records from the table in the sql server db?
Thanks,
Steve
I have a table in a sql server db that contains thousands
of records. So, I don't want to fill a dataset with
thousands of records. But I would like to get the count
of records in the table. One way I can think of would be
to use an ADO recordset object and set that to a command
object with command.Text = "Select Count(*) From tbl1"
But I understand ADO.Net is (or has) phased/ing out the
recordset object. So what is the correct way to get the
count of records from the table in the sql server db?
Thanks,
Steve