[Top] [Prev] [Next] [Bottom] [Contents]

SaGetThisAffectedRowCount

Returns the affected row count for the specified request. The request must still be valid

Synopsis

#include "WorkingDialog.h"
int SaGetAffectedRowCount(pSgeWorkCallData p);

Arguments

p
An allocated pSgeWorkCallData data structure.

Return Values

An integer representing the rows affected by the specified request from the database.

Description

SaGetAffectedRowCount returns the specified request's affected row count for an object binding and works for all DSQL Objects including those that perform Select, Insert, Update and Delete. It also returns the number of rows selected in a query for a Stored Procedure. Its value is not valid for Insert, Update and Delete.

Depending upon its use, SaGetAffectedRowCount returns the number of rows selected in the specified select statement for Sybase Stored Procedures which have multiple result groups.

Example

int nrows;
pSgeWorkCallData p;
....
nrows = SaGetAffectedRowCount(p);

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.