User ID/password authentication
- Last Updated: September 11, 2023
- 1 minute read
- DataDirect Connectors
- JDBC
- Microsoft SQL Server 6.0
- Documentation
Take the following steps to configure user ID/Password authentication.
-
Set the AuthenticationMethod property to
userIdPasswordorauto. - Set the User property to provide the user ID.
- Set the Password property to provide the password.
-
Specify values for minimum required properties for establishing a
connection.
- Set the ServerName property to specify either the IP address in IPv4 or IPv6 format, or the server name for your Azure server.
- Set the PortNumber property to specify the TCP port of the primary database server that is listening for connections to the database.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sqlserver://server1:1433;
AuthenticationMethod=userIdPassword;User=test;
Password=secret);