Hi ,
Thanks for reaching out to Microsoft Q&A.
Think your local JMeter jsut test works because the sql server jdbc driver JAR is available locally. But In ALT, that JAR is missing, so JMeter could not load the class com.microsoft.sqlserver.jdbc.SQLServerDriver
- Download the correct driver from Microsoft: Microsoft JDBC Driver for SQL Server Example file:
mssql-jdbc-12.6.0.jre11.jar - In ALT, add this JAR as an additional file or test artifact along with your
.jmxtest. ALT will distribute it to all JMeter engines automatically. - Confirm your jdbc configuration in JMeter uses:
- Driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
- URL: jdbc:sqlserver://<server>.database.windows.net:1433;databaseName=<dbname>;encrypt=true;
- Ensure the Azure SQL firewall allows connections from ALT’s IP ranges.
Without the JAR file, ALT’s JMeter instance cannot load the SQL Server driver, causing the SQLException. Uploading the jdbc driver resolves the issue.
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.