sqlsrv_server_info
sqlsrv_server_info - Returns information about the server
Manual
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:
CurrentDatabase | The connected-to database. |
SQLServerVersion | The SQL Server version. |
SQLServerName | The name of the server. |