
Microsoft's driver is actively maintained, where jTDS hasn't been updated since 2014 (and prior to the small round of updates done in 2014 it hadn't been updated for multiple years). Since jTDS 1.3.1 does not provide a functioning JDBC4 implementation, the decision was made to replace jTDS with Microsoft's own SQL Server driver. The new methods have been "implemented", but their implementations are all throw new AbstractMethodError(), which means they can't actually be used. While jTDS 1.3.0 and 1.3.1 claim to implement JDBC4, and JDBC4.1, they actually don't. The jTDS driver used by releases prior to Bamboo Server 6.0 is a JDBC3 driver, compatible with Java 1.3, and therefore cannot be used with newer versions of Hibernate.

Recent releases of Hibernate, which Bamboo uses to simplify its persistence layer, have introduced a requirement that the JDBC drivers and connection pools used be JDBC4-compliant. The JDBC URL format for Microsoft's SQL Server driver is documented on MSDN at, with documentation for additional properties at. The JDBC URL format for the jTDS driver is documented on SourceForge at.

The new JDBC driver class is: .SQLServerDriver The exact values to use in the new URL are beyond the scope of this documentation they must be chosen based on the jTDS settings they are replacing.

Jdbc:sqlserver://localhost:1433 databaseName=bambooĬom. Jdbc:sqlserver://]]Įxamples // Connect to the TestDB database on the local computer by using a user name and password: "jdbc:sqlserver://localhost databaseName=TestDB user=UserName password=Password " // Connect to the TestDB database by using integrated authentication: "jdbc:sqlserver://localhost databaseName=TestDB integratedSecurity=true "Ĭonnection Code Example import. The general form of the connection URL for JDBC driver for SQL Server is When you use sqljdbc4.jar (JDBC 4.0), applications do not need to call the Class.forName method to load the driver, it is loaded automatically by DriverManager. If you using sqljdbc.jar class library (JDBC 3.0), you must first load the driver:Ĭlass.
