SqlCurCmd%

Returns the number of the current statement in the command buffer.

Syntax

SqlCurCmd% ( sqlconn% )

where

sqlconn%
Is a SQL Server connection. The value of sqlconn% is returned by SqlOpen%.

Returns

The number of the current statement. The first statement in a group of statements is number 1.

Remarks

The statement number is incremented every time SqlResults% returns SUCCEED or FAIL. Unsuccessful statements are counted. The statement number is reset by each call to SqlExec% or SqlSend%.

See Also

SqlCmdRow%, SqlExec%, SqlMoreCmds%, SqlResults%, SqlRows%, SqlSend%