sqlsrv_close(3) php man page | unix.com

Man Page: sqlsrv_close

Operating Environment: php

Section: 3

SQLSRV_CLOSE(3) 														   SQLSRV_CLOSE(3)

sqlsrv_close - Closes an open connection and releases resourses associated with the connection

SYNOPSIS
bool sqlsrv_close (resource $conn)
DESCRIPTION
Closes an open connection and releases resourses associated with the connection.
PARAMETERS
o $conn - The connection to be closed.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 sqlsrv_close(3) example <?php $serverName = "serverNamesqlexpres"; $connOptions = array("UID"=>"username", "PWD"=>"password", "Database"=>"dbname"); $conn = sqlsrv_connect( $serverName, $connOptions ); if( $conn === false ) { die( print_r( sqlsrv_errors(), true)); } //------------------------------------- // Perform database operations here. //------------------------------------- // Close the connection. sqlsrv_close( $conn ); ?>
SEE ALSO
sqlsrv_connect(3). PHP Documentation Group SQLSRV_CLOSE(3)
Related Man Pages
sqlsrv_send_stream_data(3) - php
sqlsrv_execute(3) - php
sqlsrv_fetch(3) - php
sqlsrv_commit(3) - php
sqlsrv_rows_affected(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
Denial Of Service Attack Update