Datasource setting when using jTDS 1.2 with CFMX 7 andSQL2000 (sp4)

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

  1. #1

    Default 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 the c:/cfusionmx7/lib folder
    - restarted CFMX service
    - Entered the following DS stuff:
    URL string: JDBC URL jdbc:jtds:sqlserver://127.0.0.1:1433/PEGASUS;
    Driver Class: net.sourceforge.jtds.jdbc.Driver
    Driver name: jtds-1.2.jar
    user: sa
    pasword: *******

    And I am getting the following error:

    Connection verification failed for data source: pegasus_jTDS
    java.sql.SQLException: No suitable driver
    The root cause was that: java.sql.SQLException: No suitable
    driver[bullet][/bullet]

    Can anyone please tell me what I am doing wrong here? Thanks very much for
    your help.

    BenMarshall Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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). ...
    3. All CFMX 7 DB2 OS/390 Datasource Connections Failing
      Has anyone successfully connected to DB2 on OS/390 (mainframe) with ColdFusion 7 on Windows? This worked fine on ColdFusion 6.1 but refuses to work...
    4. CFMX 7.0 Datasource with Access
      I just installed CFMX 7 on a new web server. When I initially set it up I was able to connect a few of my Access databases without a problem. Today...
    5. CFMX 7 cannot add MySQL datasource
      Hi. I have installed CFMX 7 and its working amazing. I have a local MySQL databse running on 127.0.0.1 port 3306. I am trying to add a datasource...
  3. #2

    Default Re: Datasource setting when using jTDS 1.2 with CFMX 7 and SQL2000(sp4)

    I think your connection string is wrong:
    jdbc:sqlserver://localhost:1433;database=PEGASUS
    HTH
    --
    Tim Carley
    [url]www.recfusion.com[/url]
    [email]info@NOSPAMINGrecfusion.com[/email]
    Mountain Lover Guest

  4. #3

    Default Re: Datasource setting when using jTDS 1.2 with CFMX 7 and SQL2000(sp4)

    BenMarshall wrote:
    > URL string: JDBC URL jdbc:jtds:sqlserver://127.0.0.1:1433/PEGASUS;
    jdbc:jtds:sqlserver://SERVERNAME:1433/DATABASE
    > Driver Class: net.sourceforge.jtds.jdbc.Driver
    net.sourceforge.jtds.jdbc.Driver
    > Driver name: jtds-1.2.jar
    net.sourceforge.jtds.jdbc.Driver
    > Can anyone please tell me what I am doing wrong here? Thanks very much for
    > your help.
    other than the trailing ";" on the url & the driver name (which i think doesn't
    matter) can't really see anything wrong. try removing the trailing ";". and are
    you sure you stopped & restarted the cfserver service?

    PaulH **AdobeCommunityExpert** Guest

  5. #4

    Default Re: Datasource setting when using jTDS 1.2 with CFMX 7and SQL2000 (sp4)

    This is the error I am now getting:

    Connection verification failed for data source: pegasus_jTDS
    java.sql.SQLException: Network error IOException: Connection refused: connect
    The root cause was that: java.sql.SQLException: Network error IOException:
    Connection refused: connect

    Here are my current settings:

    URL string: jdbc:jtds:sqlserver://AMD-Server1:1433/ablecommerce_PEGASUS
    Driver class: net.sourceforge.jtds.jdbc.Driver
    Driver name: jtds-1.2.jar

    What oin earth am I doing wrong here. I have disabled firewall and anti-virus,
    but I still get this error. Any help would be greatly appreciated. Thanks.

    BenMarshall Guest

  6. #5

    Default Re: Datasource setting when using jTDS 1.2 with CFMX 7 and SQL2000(sp4)

    BenMarshall wrote:
    > URL string: jdbc:jtds:sqlserver://AMD-Server1:1433/ablecommerce_PEGASUS
    > Driver class: net.sourceforge.jtds.jdbc.Driver
    > Driver name: jtds-1.2.jar
    [url]http://jtds.sourceforge.net/faq.html#connectionRefused[/url]

    can you reach AMD-Server1 from the cf box?
    PaulH **AdobeCommunityExpert** Guest

  7. #6

    Default Re: Datasource setting when using jTDS 1.2 with CFMX 7and SQL2000 (sp4)

    *** IMPORTANT UPDATE ***

    Solved my problem. Apparently, the problem was SQL Server 2000 SP4. The JDBC
    drivers do NOT work with SP4. I uninstalled SQL Server 2000, then reinstalled
    and applied only SP3a. Everythinng worked fine first time through with SP3a.

    I also found THIS on the jTDS site (for those who are still having a problem
    with this driver)...


    Why do I get java.sql.SQLException: "Network error IOException: Connection
    refused: connect" when trying to get a connection?

    The "Connection refused" exception is thrown by jTDS when it is unable to
    connect to the server. There may be a number of reasons why this could happen:

    1. The server name is misspelled or the port number is incorrect.
    2. SQL Server is not configured to use TCP/IP. Either enable TCP/IP from
    SQL Server's Network Utility app or have jTDS connect via named pipes (see the
    URL format for information on how to do this).
    3. There is a firewall blocking port 1433 on the server.

    To check whether TCP/IP is enabled and the port is not blocked you can use
    "telnet <server_host> 1433". Until telnet doesn't connect, jTDS won't either.
    If you can't figure out why, ask your network administrator for help.

    BenMarshall 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