sqlsrv_server_info

sqlsrv_server_info - Returns information about the server
Manual
Code Examples

sqlsrv_server_info( resource$conn ): array

Returns information about the server.

Parameters

conn

The connection resource that connects the client and the server.

Return Values

Returns an array as described in the following table:

Returned Array
CurrentDatabase The connected-to database.
SQLServerVersion The SQL Server version.
SQLServerName The name of the server.

Related Functions

Example of sqlsrv_server_info

Show all examples for sqlsrv_server_info

PHP Version: