jTDS JDBC drivers with CFMX 7 Enterprise

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default jTDS JDBC drivers with CFMX 7 Enterprise

    We are using CFMX Enterprise 7.0.1 (multi-server install) and SQL Server 2000
    SP4 (NT Auth only), each on dedicated servers (in the same domain). We are
    looking at switching to the jTDS JDBC drivers instead of the DataDirect drivers
    due to NT Authentication issues (we have to stop using a domain account to
    authenticate CF to SQL). jTDS is working as expected (using a local account on
    the SQL server), except for one problem: performance seems to be worse than
    the DataDirect (3.5) drivers we are already using, approximately 3 times
    slower. For really small resultsets, this is not much of an issue. But as
    soon as we get around 500 records or more, the difference is noticable (compare
    jTDS at 1180ms and DataDirect at 158ms for a 1000 record resultset).

    As far as we know, we have specified the correct JDBC URL in the datasource:


    jdbc:jtds:sqlserver://server:1433/db;domain=devserver;sendStringParametersAsUnic
    ode=false;cachemetadata=true

    So what are we missing? Why is jTDS so much slower?

    Also, if there is a way to use the DataDirect drivers to log in across two
    servers using a local account on the SQL server, I'd be happy to know it.

    MARMC WebMaster Guest

  2. Similar Questions and Discussions

    1. Datasource setting when using jTDS 1.2 with CFMX 7 andSQL2000 (sp4)
      I am trying to get the jTDS 1.2 driver working on CFMX 7 and SQL 2000 (SP4). Here is what I did: - stopped CFMX service - copied jTDS-1.2.jar to...
    2. jTDS and CFMX 6.1 Installation?
      I'm wondering if someone can help me install jTDS into my CFMX 6.1 world. I copied the jtds-1.2.jar file to the C:\CFusionMX\lib directory. In...
    3. Microsoft JDBC Drivers
      I am thinking of using the Microsoft JDBC SQL Server 2005 drivers to connect CF MX7 data sources. Does anyone have a production application...
    4. Using Oracle JDBC drivers
      Hi SPSman, Can you post your sample code here with attach code option. so I think I could help you out. regards logu.
    5. Any JDBC drivers for informix anywhere (ifxjdbc.jar?)
      Hi, I have a JDBC driver file for Informix of unknown age, although the version is known to be Version 2.11.JC1 I looked absolutely...
  3. #2

    Default Re: jTDS JDBC drivers with CFMX 7 Enterprise

    MARMC WebMaster wrote:
    > authenticate CF to SQL). jTDS is working as expected (using a local account on
    > the SQL server), except for one problem: performance seems to be worse than
    > the DataDirect (3.5) drivers we are already using, approximately 3 times
    that's exactly the opposite of what we normally see. what authentication are you
    using (sql or trusted)? haven't really tested the trusted authentication but
    using an sql server account (sql server login), jTDS flys.
    PaulH *ACE* Guest

  4. #3

    Default Re: jTDS JDBC drivers with CFMX 7 Enterprise

    Actually, the jTDS people were able to solve the problem: set useLOBs=false.
    It turns out that we were testing on a table containing a text column. jTDS
    was converting it to a CLOB instead of leaving it as a longvarchar.

    As soon as we added this parameter, jTDS went from being 3 times slow to being
    2 times faster!

    And we are using NT authentication only (performance is the same using NT
    username/password or letting it pass the service SID/credentials).

    MARMC WebMaster Guest

  5. #4

    Default Re: jTDS JDBC drivers with CFMX 7 Enterprise

    MARMC WebMaster wrote:
    > Actually, the jTDS people were able to solve the problem: set useLOBs=false.
    > It turns out that we were testing on a table containing a text column. jTDS
    > was converting it to a CLOB instead of leaving it as a longvarchar.
    good catch. if you have a blog it's something worth repeating publicly.
    PaulH *ACE* Guest

  6. #5

    Default Re: jTDS JDBC drivers with CFMX 7 Enterprise

    just tried jtds, and i'm seeing a tremendous performance hit on a table with a
    bunch of ntext fields, in sql server 2000.

    here's the url:
    jdbc:jtds:sqlserver://server:1433/dbname;sendStringParametersAsUnicode=false;cac
    hemetadata=true;useLOBs=false

    otherwise, kept all the defaults in cfadmin.

    any advice here?

    jonnycattt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139