--- title: "getAttributes Method (SQLServerDatabaseMetaData) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerDatabaseMetaData.getAttributes" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 4dc784ed-4699-4197-9af5-6e03da80d14c author: David-Engel ms.author: v-daenge --- # getAttributes Method (SQLServerDatabaseMetaData) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves a description of the given attribute of the given type for a user-defined type that is available in the given schema and catalog. > [!NOTE] > This method is not currently supported by the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)]. If called, it will always return an empty result set. ## Syntax ``` public java.sql.ResultSet getAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern) ``` #### Parameters *catalog* A **String** that contains the catalog name. *schemaPattern* A **String** that contains the schema name pattern. *typeNamePattern* A **String** that contains the type name pattern. *attributePattern* A **String** that contains the attribute name pattern. ## Return Value A [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getAttributes method is specified by the getAttributes method in the java.sql.DatabaseMetaData interface. ## See Also [SQLServerDatabaseMetaData Methods](../../../connect/jdbc/reference/sqlserverdatabasemetadata-methods.md) [SQLServerDatabaseMetaData Members](../../../connect/jdbc/reference/sqlserverdatabasemetadata-members.md) [SQLServerDatabaseMetaData Class](../../../connect/jdbc/reference/sqlserverdatabasemetadata-class.md)