Basic Authentication
- Last Updated: May 13, 2025
- 1 minute read
This string includes only the information required to establish a connection. For detailed descriptions of these properties, see Required properties.
jdbc:datadirect:teamcity:ServerName=server_name;User=user_name;Password=password;
[property=value[;...]];
where:
- server_name
- specifies the base URL of the TeamCity service to which you want to
issue requests. For example, https://teamcity.company.com for enterprise accounts. Note: Specifying an HTTPS URL for this property enables data encryption.
- user_name
- specifies the user name that is used to connect to your TeamCity service.
- password
- specifies the password used to connect to your TeamCity service.
- property=value
- specifies connection property settings. Multiple properties are separated by a semi-colon.
Note: The
User and Password properties are not required to be stored in the connection string. They
can also be sent separately by the application.
The following example shows how to
establish a connection to a TeamCity service:Connection conn = DriverManager.getConnection
("jdbc:datadirect:teamcity:ServerName=https://teamcity.company.com;
User=jsmith;Password=secret;");