Muokkaa

Jaa


SQLRowCount (Cursor Library)

Important

This feature will be removed in a future version of Windows. Avoid using this feature in new development work and plan to modify applications that currently use this feature. Microsoft recommends using the driver's cursor functionality.

This topic discusses the use of the SQLRowCount function in the cursor library. For general information about SQLRowCount, see SQLRowCount Function.

When an application calls SQLRowCount with the statement associated with the cursor, the cursor library returns the number of rows of data it has retrieved from the driver.

When an application calls SQLRowCount with the statement associated with a positioned update or delete statement, the cursor library returns the number of rows affected by the statement.

When an application calls SQLRowCount after a SELECT statement, the cursor library returns -1.