dbcurcmd

Returns the number of the current command within a command batch.

Syntax

INT dbcurcmd ( PDBPROCESS dbproc );

Arguments
dbproc
Is the DBPROCESS structure that is the handle for a particular workstation/ Microsoft® SQL Server™ process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.
Returns

The number of the command whose results are currently being processed. The first command in a batch is number 1.

Remarks

The command number is incremented every time dbresults returns SUCCEED or FAIL. Unsuccessful commands are counted. The command number is reset by each call to dbsqlexec or dbsqlsend.

See Also
dbcmdrow dbrows
dbmorecmds dbsqlexec
dbresults dbsqlsend

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.