Can't Connect to SQL Server DB

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

  1. #1

    Default Can't Connect to SQL Server DB

    I just installed ColdFusion MX and SQL Server Desktop Edition on my laptop for
    development purposes. I've got the database up and have have created a few
    tables and populated those tables with data. The problem is that when I try to
    set up the datasource in ColdFusion Administrator, it won't connect. I get
    this error

    Connection verification failed for data source: FDP_dev
    java.sql.SQLException: Error establishing socket to host and port:
    M-XP207020:1433. Reason: Connection refused: connect
    The root cause was that: java.sql.SQLException: Error establishing socket to
    host and port: M-XP207020:1433. Reason: Connection refused: connect

    I have tried everything that I can think of, but still don't have a clue as to
    what is wrong. I've installed the latest ODBC drivers, shutdown, restarted,
    searched the KB, but to no avail.

    Any help will be greatly appreciated.

    David

    dwright65 Guest

  2. Similar Questions and Discussions

    1. I have a flash movie running a http server but it needsto connect to another server in https.
      I have a flash movie running a http server but it needs to connect to another server in https. I am having problems when trying to open the url in...
    2. I have a flash movie running a http server but it needsto connect to another server in https
      I have a flash movie running a http server but it needs to connect to another server in https. I am having problems when trying to open the url in...
    3. could not connect to SMTP server from sql server using JMail, xp_smtp_sendmail or sp_send_cdosysmail
      I am trying to send an email message from sql server using the JMail component from dimac.net. I was able to use the stored procudure sp_send_mail...
    4. Cannot connect to Terminal Server via Terminal Services Manager after upgrade to Windows Server 2003
      The following error is displayed in the Terminal Services Manager on our domain controller (DC-01) when trying to connect to Terminal Services on...
    5. Web Server Connect
      I am running Filemaker 6 Unlimited on three machines with the Web Server Connect program supplied with this version of Filemaker. Web Server...
  3. #2

    Default Re: Can't Connect to SQL Server DB

    this may help

    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=0 0001743.htm[/url]
    cfdoogan Guest

  4. #3

    Default Re: Can't Connect to SQL Server DB

    Disable your firewall and try again. Some block port 1433 by default.
    BKBK Guest

  5. #4

    Default Re: Can't Connect to SQL Server DB

    Hi,
    Am Having the same problem; i was wondering if you have found a solution to it
    so you can let me know about it to.
    Am Still trying very hard to find a solution, incase i do first, i'll let you
    know but please if you have, i really need a helping hand on this.
    it gives me this error

    --------------------------------------------------------------------------------
    -------------------------------
    Connection verification failed for data source: fusetalk
    java.sql.SQLException: Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException: Error establishing socket.
    Connection refused: connect

    --------------------------------------------------------------------------------
    -------------------------------

    Am really confused, i have tried everything i know so far and its not getting
    any better.

    mdi_george_java man Guest

  6. #5

    Default Re: Can't Connect to SQL Server DB

    Every time I have a problem connecting to a SQL Server DB via CF Admin, I do
    the following:

    In Windows, Control Panel, Administrative Tools, Data Sources(ODBC), set up a
    User DSN and a System DSN to the SQL Server DB. USE THE SAME NAME FOR BOTH. If
    you are using the local server on the machine, type in (local) as the server
    for the select box 'Which SQL Server do you want to connect to?' Make sure the
    connection tests OK at the end of each setup.

    Go into CF Admin under Data Sources and Add a new datasource but DO NOT pick
    SQL Server, use ODBC. Select the ODBC DSN(the entry you added should be in the
    dropdown list). Click 'Trusted Connection'. Leave username set to system .
    Click Submit and you should be connected.

    If this does not work, you may have to add a user to the Users section of the
    database with sufficient access. You will have to add the user under Control
    Panel/User Groups also.

    Then go back into CF Admin and replace username with the username of the new
    user you added and the password you assigned this user under Control Panel/User
    Groups

    drforbin1970 Guest

  7. #6

    Default Re: Can't Connect to SQL Server DB

    In Windows, Control Panel, Administrative Tools, Data Sources(ODBC), set up a
    User DSN and a System DSN to the SQL Server DB. USE THE SAME NAME FOR BOTH. If
    you are using the local server on the machine, type in (local) as the server
    for the select box 'Which SQL Server do you want to connect to?' Make sure the
    connection tests OK at the end of each setup.

    I'm getting connection failed
    "sql server does not exist or access denied"
    having used the windows nt authentication in trying to set up these as your
    suggestions

    The express server does exist (i can access it through the management studio)
    so what should I be trying next

    Cheers


    I'mAndy 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