CTI32 Engine Class Library

Db.UpdateIdentity Method 

Update database (usually an INSERT) and return the identity column

[Visual Basic]
Public Function UpdateIdentity( _
   ByVal sqlStmt As String _
) As Integer
[C#]
public int UpdateIdentity(
   string sqlStmt
);

Parameters

sqlStmt
SQL Statement of INSERT statement

Return Value

Identity of new row, or -1 if error

See Also

Db Class | CTI32Engine Namespace