DataSource.CountSQL Run-Time Property (ASP)
Stores the main part of the SQL query that is used to find the number of records fetched by DataSource object.
This property does not include the WHERE clause. Before the query is executed, conditions from the Where and WhereParameters properties are used instead.
Note: The usual content of this property includes the COUNT aggregate function: SELECT COUNT(*) FROM ...
On-line, printable versions and updates