mssql_fetch_batch Returns the next batch of records &reftitle.description; intmssql_fetch_batch resourceresult Returns the next batch of records. &reftitle.parameters; result The result resource that is being evaluated. This result comes from a call to mssql_query. &reftitle.returnvalues; Returns the number of rows in the returned batch. &reftitle.examples; <function>mssql_fetch_batch</function> example = 0) { while ($row = mssql_fetch_assoc($result)) { // Do stuff ... } --$records; } if ($batchsize = mssql_fetch_batch($result)) { // $batchsize is the number of records left // in the result, but not shown above } ?> ]]>