class SqlsrvResult implements ResultDriver

The driver for Microsoft SQL Server and SQL Azure result set.

Traits

Better OOP experience.

Methods

__construct(resource $resultSet)

No description

__destruct()

Automatically frees the resources allocated for this result set.

int
getRowCount()

Returns the number of rows in a result set.

array|null
fetch(bool $assoc)

Fetches the row at current position and moves the internal cursor to the next position.

bool
seek(int $row)

Moves cursor position without fetching row.

void
free()

Frees the resources allocated for this result set.

array
getResultColumns()

Returns metadata for all columns in a result set.

mixed
getResultResource()

Returns the result set resource.

string
unescapeBinary(string $value)

Decodes data from result set.

Details

at line 32
__construct(resource $resultSet)

Parameters

resource $resultSet

at line 41
__destruct()

Automatically frees the resources allocated for this result set.

at line 52
int getRowCount()

Returns the number of rows in a result set.

Return Value

int

at line 62
array|null fetch(bool $assoc)

Fetches the row at current position and moves the internal cursor to the next position.

Parameters

bool $assoc true for associative array, false for numeric

Return Value

array|null

at line 71
bool seek(int $row)

Moves cursor position without fetching row.

Parameters

int $row

Return Value

bool true on success, false if unable to seek to specified record

Exceptions

Exception

at line 80
void free()

Frees the resources allocated for this result set.

Return Value

void

at line 89
array getResultColumns()

Returns metadata for all columns in a result set.

Return Value

array of {name, nativetype [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor ]}

at line 107
mixed getResultResource()

Returns the result set resource.

Return Value

mixed

at line 117
string unescapeBinary(string $value)

Decodes data from result set.

Parameters

string $value

Return Value

string