Skip to main content
September 30, 2015
Answered

Cannot connect to msSQL 14 from CF 11 admin.

  • September 30, 2015
  • 1 reply
  • 1882 views

I just added msSQL 2014 to a new computer running Windows 7 and CF 11

I opened the port 1434 and when I tried to connect the datasource in CF Admin got this message...

Connection verification failed for data source: mydb1

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.


If I use the computer name alone same. If I enter both  computer name and port I get an error stating I cannot enter both...

This topic has been closed for replies.
Correct answer BKBK

This article on creating a DSN for SQL Server might help.

1 reply

September 30, 2015

i changed port to 1433 with same error

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
October 2, 2015
October 2, 2015

Hi BKBK,

After much frustration called a tech I knew yesterday.

I had opened the port already and everything I could think of and find on Google search.

What it turned out was the msSQL server had decided on it's own name and password and I didn't know that nor how to detect it.

He connected to my desktop, found server name and created a new password.

Perfect.

Tnx,