jTDS and CFMX 6.1 Installation?

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

  1. #1

    Default 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 the Administrator, I created a new "other" datasource using this JDBC URL:

    jdbc:jtds:sqlserver://127.0.0.1:2195\SQLEXPRESS/TVRCampSQL;useLOBs=false

    I set the driver class to: (**** I think this is the problem ****)

    net.sourceforge.jtds.jdbc.Driver

    I set the driver name to:

    jtds-1.2.jar

    And I entered the username/password for the database in the username and
    password fields of the driver dialog.

    However, I get the following error:

    Connection verification failed for data source: test2
    []java.sql.SQLException: No suitable driver available for test2, please check
    the driver setting in resources file, error: net.sourceforge.jtds.jdbc.Driver
    The root cause was that: java.sql.SQLException: No suitable driver available
    for test2, please check the driver setting in resources file, error:
    net.sourceforge.jtds.jdbc.Driver


    redtopia Guest

  2. Similar Questions and Discussions

    1. CFMX 7.0.2 installation
      We have been working on Coldfusion MX 7.X migration, I took the latest version of .exe file from the macromedia website and installed. Installation...
    2. 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...
    3. 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). ...
    4. CFMX 7.0 Installation
      We're starting with a clean machine--MS 2003 OS, and rather than recreating the CF 4.5.1 enviornment, migrating the applications, et cetera, then...
    5. Help - Can't complete CFMX 7 Installation
      I cannot get CFMX 7 to work after installation. I'm running: Windows XP Pro IIS 5.1 Before installing I turned of my anti-virus program...
  3. #2

    Default Re: jTDS and CFMX 6.1 Installation?

    redtopia wrote:
    > jdbc:jtds:sqlserver://127.0.0.1:2195\SQLEXPRESS/TVRCampSQL;useLOBs=false
    jdbc:jtds:<server_type>://<server>[:<port>][/<database>][;<property>=<value>[;...]]

    wrong slash, what's SQLEXPRESS, an instance? if so you have to split that off as
    a property (instance=SQLEXPRESS). also i *think* the user & password are required.
    > I set the driver class to: (**** I think this is the problem ****)
    >
    > net.sourceforge.jtds.jdbc.Driver
    that looks right.
    > I set the driver name to:
    >
    > jtds-1.2.jar
    that looks wrong (though it might not matter), try
    net.sourceforge.jtds.jdbc.Driver & see what happens.

    finally, did you stop/restart the cf server after you copied in the driver jar?

    PaulH **AdobeCommunityExpert** Guest

  4. #3

    Default Re: jTDS and CFMX 6.1 Installation?

    Thank you so much! I restarted the CFMX service and was able to connect to the
    driver.

    My connection string is now:


    jdbc:jtds:sqlserver://REDWING:1433/TVRCampSQL;user=tvrcamp;password=test123;useL
    OBs=false;

    Initially, I was getting network connection errors, but after tweeking the
    connection string, I was finally able to get the driver to attempt to login,
    which of course is failing. I've got the username and password correct, but the
    driver still tells me that the login is failing:

    Connection verification failed for data source: test
    []java.sql.SQLException: Login failed for user 'tvrcamp'.
    The root cause was that: java.sql.SQLException: Login failed for user
    'tvrcamp'.

    Could this still be related to the network connection? Or what else could be
    giving me this error?

    Thanks in advance!

    redtopia Guest

  5. #4

    Default Re: jTDS and CFMX 6.1 Installation?

    redtopia wrote:
    > which of course is failing. I've got the username and password correct, but the
    > driver still tells me that the login is failing:
    >
    > Connection verification failed for data source: test
    > []java.sql.SQLException: Login failed for user 'tvrcamp'.
    > The root cause was that: java.sql.SQLException: Login failed for user
    > 'tvrcamp'.
    that user an sql server user which has permissions to that db? jTDS can
    do windows authentication but i don't recall how.
    PaulH *ACE* Guest

  6. #5

    Default Re: jTDS and CFMX 6.1 Installation?

    I'm using SQL authentication, not NT.

    I have another DSN using the ODBC Socket, that is going to the same
    db/username/password, and it works fine. But I found a bug in that driver where
    ntext fields are not being returned unless they are the last rows in the table,
    or you explicity ask for them by name in the query. So I am trying to replace
    my connections using the jtds drivers.

    I have a feeling the login error is not really telling the full story. I know
    the username/password is correct, and I know that I can connect to the db using
    the ODBC Socket, though I have not been successful at connecting to the db
    using the built-in SQL Server driver. It probably has something to do with the
    port/instance. It seems like I should somehow set the instance name
    "SQLEXPRESS," but when I do this, I get another error:

    # Connection verification failed for data source: test
    []java.sql.SQLException: Server 127.0.0.1 has no instance named SQLEXPRESS.
    The root cause was that: java.sql.SQLException: Server 127.0.0.1has no
    instance named SQLEXPRESS.


    redtopia Guest

  7. #6

    Default Re: jTDS and CFMX 6.1 Installation?

    OK, I tweeked the settings in the SQL Server Configuration program and turned
    on the TCP/IP connection in the Protocols for SQLEXPRESS. I setup the localhost
    IP address (127.0.01) to listen to port 2195. I changed my connection string to:


    jdbc:jtds:sqlserver://127.0.0.1:2195/TVRCampSQL;user=tvrcamp;password=testing123
    ;useLOBs=false;instance=SQLEXPRESS;

    and I'm now getting the error:

    Connection verification failed for data source: test
    []java.sql.SQLException: Cannot open database "TVRCampSQL" requested by the
    login. The login failed.
    The root cause was that: java.sql.SQLException: Cannot open database
    "TVRCampSQL" requested by the login. The login failed.

    I wonder why it can't open the database? FYI: That login (in SQL Server) is
    setup to open TVRCampSQL by default.

    redtopia Guest

  8. #7

    Default Re: jTDS and CFMX 6.1 Installation?

    Whoops... I had the database name wrong.

    I got it working now. Thanks so much for your help!
    redtopia 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