Move the file confluence.home/confluence/WEB-INF/lib/jtds-x.x.jar to confluence.home/lib. This jar file represent the JDBC driver to connect to a SQL Server database (where x.x is the version in the filename of the jar)
Add a JNDI resource inside the Context element of the configuration file conf/server.xml :