DBCOUNT

Description

Returns the number of rows affected by a Transact-SQL command.

Syntax

DBINT DBCOUNT(dbproc)
 
DBPROCESS      *dbproc;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

Returns

The number of rows affected by the command, or -1. DBCOUNT will return -1 if any of the following are true:

Usage

See also

dbnextrow, dbresults, Options