Installing jTDS SQL Server JDBC Driver for ColdFusion

ColdFusion , Database , Unicode Add comments

We are using MS SQL Server for our main application and we have some issues with the Unicode support on default delivered driver etc. After testing some resources we have decided to change our main SQL JDBC driver which we use to connect to the SQL Server. We have selected jTDS one which is known as a robust solution and having it as free was nice. :)

Here are the steps to install jTDS JDBC driver on a ColdFusion 8 server:

  • Download the new driver from http://jtds.sourceforge.net In my case the file name was "jtds-1.2.2-dist.zip"
  • Extract the file and find the jar file such as "jtds-1.2.2.jar".
  • Copy the jar file (jtds-1.2.2.jar) into ColdFusion lib directory ("...\ColdFusion8\lib" or "...\WEB-INF\cfusion\lib")
  • Restart ColdFusion.
  • Create a new DSN in ColdFusion administrator as selecting "other" and put following information
    • CF Data Source Name: your data source name
    • JDBC URL: jdbc:jtds:sqlserver://yourServerName:1433/yourDatabaseName;
    • Driver Class: net.sourceforge.jtds.jdbc.Driver
    • Driver Name: Any name that you prefer (I said jTDS)
    • And the rest is as always your username, password etc.
  • jTDS Driver


After having these settings, you should be able to connect your SQL Server with your new jTDS JDBC driver.

Have fun!

6 responses to “Installing jTDS SQL Server JDBC Driver for ColdFusion”

  1. greg Says:
    Why couldn't you use the SQL Server JDBC driver that comes with Cold Fusion?

    Curious...
  2. Oğuz Demirkapı Says:
    We were using it. But when we activate Unicode support in CF admin, we have realized that it makes whole servers slower and in a short time CF servers were dying because of our load. We have 5 servers in a clustered env. and it was a show stopper for our projects.

    I will blog about the problem also soon ...
  3. alias Says:
    Connection verification failed for data source: cold
    java.sql.SQLException: Unknown server host name 'ALIAS\sqlexpress'.
    The root cause was that: java.sql.SQLException: Unknown server host name 'ALIAS\sqlexpress'.

    some help
  4. Mike Brunt Says:
    This this solve your performance issue?
  5. Oğuz Demirkapı Says:
    Completely!

    It is a problem on DataDirect JDBC driver. All our servers runs with jTDS now without any problem. Even faster.
  6. Mike Brunt Says:
    Railo have a version of Railo 3.0 bundled to run on EC2 the details are here http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1716

    Not certain how they handle licensing though.

Leave a Reply

Leave this field empty:



Powered by Mango Blog. Design and Icons by N.Design Studio