SQL 2008 ColdFusion 8 Cannot Connect

Posted on 2009-04-18
Last Modified: 2013-12-24
I am attempting to connect ColdFusion to a SQL 2008 server.  I have done the following:
1. Restored a dbase using .bak (everything went fine)
2. Under the Main SQL Server I changed to "SQL Server and Windows Authentication mode"
3. Using SQL Server Mgt Studio under Security>Logins I created a user account "Test1">SQL Server Authentication>Defaulted to the restored dbase>Server Roles: Public>User Mapping>The restored dbase>Status "Grant" & "Enable"
4. When I attempt to connect to ColdFusion using admin console I receive the error below
Connection verification failed for data source: Veolia

java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: Reason: Connection refused: connect

The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: Reason: Connection refused: connect

Open in new window

Question by:ShadowIT
    LVL 19

    Expert Comment

    did you set teh db user/pass ie the sa password

    Author Comment

    not sure what you mean...there's an sa account and it does appear to have a password associated with it but I didn't set it myself.  
    LVL 63

    Accepted Solution

    Set in the SQL server to use the TCP/IP connections also, not only the native MSSQL connections.

    Author Closing Comment

    You're the man!  That did the trick!

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Web Site Hosting 10 54
    SQL Server 208R2 not recognizing DBF file in linked Server 11 30
    SSL sertificate 5 32
    Help with SQL 9 62
    If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now