mssql_fetch_assoc
mssql_fetch_field
Mssql Functions
PHP Manual

# mssql_fetch_batch

(PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)

mssql_fetch_batch — Returns the next batch of records

### Descripción

int mssql_fetch_batch ( resource `$result` )

Returns the next batch of records

### Lista de parámetros

`result`

  The result resource that is being evaluated. This result comes from a call to mssql_query().

### Valores retornados

Returns the batch number as an integer.

### Ejemplos

Example #1 mssql_fetch_batch() example

`<?php
// Connect to MSSQL
$link = mssql_connect('MANGO\SQLEXPRESS', 'sa', 'phpfi');
mssql_select_db('php', $link);
// Send a query
$result = mssql_query('SELECT * FROM [php].[dbo].[people]', $link, 100);
$records = 10;
while($records >= 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
}
?>`

mssql_fetch_assoc
mssql_fetch_field
Mssql Functions
PHP Manual