G
Guest
Does anybody know how to get the actual number or rows returned when using
the StartRecord and MaxRecords parameters with the SQLDataAdapter.Fill()?
Since the whole resultset is returned from SQL Server it would be nice to
access this information. And appending SELECT @@ROWCOUNT to the original
query doesn't seem to work since Fill() doesn't seem to support multiple
tables when using StartRecord/MaxRecords.
I know I could restrict the number of rows returned using SELECT TOP, but
the actual number of rows is requested information. Also, I'd like to avoid
using a separate SELECT COUNT(*), since the query is dynamically generated
and might be fairly heavy.
Btw, this is using VS 2005 beta 2 with SQL Server 2000.
Grateful for any ideas!
Arne
the StartRecord and MaxRecords parameters with the SQLDataAdapter.Fill()?
Since the whole resultset is returned from SQL Server it would be nice to
access this information. And appending SELECT @@ROWCOUNT to the original
query doesn't seem to work since Fill() doesn't seem to support multiple
tables when using StartRecord/MaxRecords.
I know I could restrict the number of rows returned using SELECT TOP, but
the actual number of rows is requested information. Also, I'd like to avoid
using a separate SELECT COUNT(*), since the query is dynamically generated
and might be fairly heavy.
Btw, this is using VS 2005 beta 2 with SQL Server 2000.
Grateful for any ideas!
Arne