Configuring SQL Server Authentication
- Last Updated: March 7, 2018
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
-
Set the AuthenticationMethod property to
autooruserIdPassword(default). See Using the AuthenticationMethod Property for more information about setting a value for this property. - Set the User property to provide the user ID.
- Set the Password property to provide the password.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sqlserver://server1:1433;
AuthenticationMethod=userIdPassword;User=test;Password=secret");