Skip to main content
Inspiring
October 20, 2022
Answered

Can't create DSN — java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]

  • October 20, 2022
  • 1 reply
  • 565 views

I am trying to set up a DSN to a SQL Server database, but keep getting an error.  SQL Server Browser IS running.  

 

  • Connection verification failed for data source: mvqs
    java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]The connection to the host {0}, named instance {1} has failed. Error: "{2}". Verify the server and instance names, check that no firewall is blocking UDP traffic to port 1434, and for SQL Server 2005 or later verify that the SQL Server Browser Service is running on the host.
    The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]The connection to the host {0}, named instance {1} has failed. Error: "{2}". Verify the server and instance names, check that no firewall is blocking UDP traffic to port 1434, and for SQL Server 2005 or later verify that the SQL Server Browser Service is running on the host.
    This topic has been closed for replies.
    Correct answer ssailer

    I think I just may have solved it.  I ran the SQL Server Configuration Manager, and made sure that TCP/IP was inabled, and I think that did it.  Weird, right?  Does that even make sense to you?  Thanks!  

    1 reply

    RaviShankar Chagnur
    Adobe Employee
    Adobe Employee
    October 20, 2022

    Can you please let us know the version of Coldfusion you are using? Also, let me know if you have installed the SQL server on a different machine. If so, can you telnet to the DB host and port from the server where Coldfusion is installed?

    ssailerAuthorCorrect answer
    Inspiring
    October 21, 2022

    I think I just may have solved it.  I ran the SQL Server Configuration Manager, and made sure that TCP/IP was inabled, and I think that did it.  Weird, right?  Does that even make sense to you?  Thanks!  

    Community Expert
    October 21, 2022

    Yes, this is required for SQL Server connections from ColdFusion.

     

    Dave Watts, Eidolon LLC 

    Dave Watts, Eidolon LLC