Condividi tramite


getClientInfo Method (java.lang.String)

Retrieves the value of a specified client information property.

Nota

This feature is introduced starting with the Microsoft SQL Server JDBC Driver version 2.0

public java.lang.String getClientInfo (java.lang.String name)

Parametri

name

A String that contains the name of the client information property to retrieve.

Valore restituito

A String that contains the value of the client information property.

Eccezioni

SQLServerException

Osservazioni

This getClientInfo method is specified by the getClientInfo method in the java.sql.Connection interface.

The Microsoft SQL Server JDBC Driver version 2.0 does not support any client info properties. As a result, in the JDBC Driver version 2.0 release, this method returns null.

Similarly, applications can use the getClientInfoProperties method of the SQLServerDatabaseMetaData class to retrieve a list of the client information properties that the driver supports. In the JDBC Driver version 2.0 release, the getClientInfoProperties method returns an empty result set.

Vedere anche

Riferimento

SQLServerConnection Class

Concetti

getClientInfo Method (SQLServerConnection)
SQLServerConnection Methods
SQLServerConnection Members