Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 2.06 KB

File metadata and controls

49 lines (35 loc) · 2.06 KB
title getClientInfo Method (java.lang.String) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
ms.assetid e8e632c4-d6cc-4c5e-b6ad-873579343b19
author David-Engel
ms.author v-daenge

getClientInfo Method (java.lang.String)

[!INCLUDEDriver_JDBC_Download]

Retrieves the value of a specified client information property.

Syntax

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

Parameters

name

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

Return Value

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

Exceptions

SQLServerException

Remarks

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

The [!INCLUDEjdbcNoVersion] does not support any client info properties. As a result, 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. The getClientInfoProperties method returns an empty result set.

See Also

getClientInfo Method (SQLServerConnection)
SQLServerConnection Members
SQLServerConnection Class