So I've looked into it a bit more:
https://docs.microsoft.com/en-us/sq...c-driver-for-sql-server?view=sql-server-ver15
https://docs.microsoft.com/en-us/sq...tanding-java-ee-support?view=sql-server-ver15
1. The driver class name is
com.microsoft.sqlserver.jdbc.SQLServerDriver not mssql-jdbc-8.2.2.jre11.jar
2.When you download the driver, there are multiple JAR files. The name of the JAR file indicates the version of Java that it supports.
#AdditionalJar:mssql-jdbc-8.2.2.jre11 would mean Java 11
3. make sure you have in your b4j project
and the jar file in your b4j additional libraries folder