title getDatabaseName Method (SQLServerDataSource) | Microsoft Docs ms.custom ms.date 01/19/2017 ms.prod sql ms.prod_service drivers ms.service ms.component jdbc ms.reviewer ms.suite sql ms.technology drivers ms.tgt_pltfrm ms.topic article apiname SQLServerDataSource.getDatabaseName apilocation sqljdbc.jar apitype Assembly ms.assetid cffa1602-c045-4e61-abb6-442ade28dbf6 caps.latest.revision 9 author MightyPen ms.author genemi manager jhubbard ms.workload Inactive getDatabaseName Method (SQLServerDataSource) [!INCLUDEDriver_JDBC_Download] Returns the database name. Syntax public java.lang.String getDatabaseName() Return Value A String that contains the database name or null if no value is set. See Also SQLServerDataSource Members SQLServerDataSource Class