int sqlsrv_rows_affected    ( resource $stmt   )

sqlsrv_rows_affectedReturns the number of rows modified by the last INSERT, UPDATE, or DELETE query executed

stmt

The executed statement resource for which the number of affected rows is returned.