- Newest
- Most votes
- Most comments
When using Windows Authentication with AWS Schema Conversion Tool (SCT) for SQL Server connections, you're encountering a common issue related to the JDBC driver configuration for integrated authentication.
The error occurs because the JDBC driver isn't properly configured to use Windows Authentication. To resolve this issue, you need to take the following steps:
-
Make sure you have the
sqljdbc_auth.dllfile available. This DLL is required for Windows Authentication and should be included in your JDBC driver package. -
Set up environment variables that point to your JDBC installation:
- Create a variable named
SQLJDBC_HOMEwith the path to where your sqljdbc4.jar exists - Create a variable named
SQLJDBC_AUTH_HOMEpointing to the auth folder wheresqljdbc_auth.dllis located (use the x64 folder if you're on a 64-bit system)
- Copy the
sqljdbc_auth.dllfile to the folder where your JDK/JRE is running. You may need to copy it to multiple locations such as:
- The JDK bin folder
- The JDK jre\bin folder
- The JDK jre\lib folder
- The JDK lib folder
-
Ensure that in your JDBC library folder, you only have the appropriate JDBC JAR file and remove any other sqljdbc*.jar files from that folder.
-
You can also try copying the
sqljdbc_auth.dllfile to the folder where your AWS SCT application is installed.
These steps should help configure the JDBC driver properly for Windows Authentication with AWS SCT. If you continue to have issues, you might want to temporarily switch to SQL Server Authentication for your SCT tasks until the Windows Authentication configuration is resolved.
Sources
Connect Microsoft SQL Servers with AWS Schema Conversion Tool - AWS Schema Conversion Tool
Relevant content
- asked 2 years ago
- asked 5 years ago
