Establishing a Connection
Creating a JDBC Data Source
You can create a JDBC data source to connect from your Java application, based on CData JDBC Driver for Microsoft SQL Server Analysis Services.Follow these steps:
- Add the driver JAR file to the classpath. The JAR file is located in the installation directory's lib subfolder. Ensure that the .lic file is located in the same folder as the JAR file.
- Provide the driver class. For example:
cdata.jdbc.ssas.SSASDriver
- Provide the JDBC URL. For example:
jdbc:ssas:User=myuseraccount;Password=mypassword;URL=http://localhost/OLAP/msmdpump.dll;
Or, if there is a conflict in your application between drivers using the same URL format, use this form to ensure that you are using the CData driver:
jdbc:cdata:ssas:User=myuseraccount;Password=mypassword;URL=http://localhost/OLAP/msmdpump.dll;
Ensure that the URL starts with either jdbc:ssas: or jdbc:cdata:ssas:. The URL can include any of the connection properties in name-value pairs separated with semicolons.
Connecting to Microsoft SQL Server Analysis Services
To connect, set the URL property to a valid Microsoft SQL Server Analysis Services endpoint and provide authentication. The driver must connect to Microsoft SQL Server Analysis Services instances hosted over HTTP with XMLA access. See the Microsoft documentation to configure HTTP access to Microsoft SQL Server Analysis Services.
Note: When using the driver in DAX QueryMode, metadata discovery relies on DAX INFO functions. These functions require a minimum server version of SQL Server Analysis Services(SSAS) 2025. If connecting to SSAS 2022 or earlier, these metadata queries are not supported by the underlying engine.
Authenticating to Microsoft SQL Server Analysis Services
The driver supports the major authentication schemes, including HTTP and Windows.
Set AuthScheme to use the following authentication types.
Anonymous Authentication
If anonymous authentication is available, set AuthScheme to none to avoid authentication.
Basic
Set SQL Server database User and Password and set AuthScheme to "BASIC".
Windows (NTLM)
Set the Windows User and Password and set AuthScheme to "NTLM".
Kerberos
Please see Using Kerberos for details on how to authenticate with Kerberos.
Securing Microsoft SQL Server Analysis Services Connections
By default, the driver attempts to negotiate SSL/TLS by checking the server's certificate against the system's trusted certificate store. To specify another certificate, see the SSLServerCert property for the available formats.