Skip to main content
Inspiring
January 10, 2008
Answered

CF8 and MS SQL 2000

  • January 10, 2008
  • 2 replies
  • 965 views
I'm having quite a bit of trouble connecting to a local MS SQL database I've created. I have a fresh install of CF8 dev version, and am using the MS SQL 2000 eval version. I can connect to a remote SQL DB just fine, the problem comes when I try to login to a local DB. This is the error I get:

Connection verification failed for data source: noblesqlLOCAL
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: localhost:1433. Reason: Connection refused: connect
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: localhost:1433. Reason: Connection refused: connect


I have seen some people have solved this problem by updated to SP3 or SP4. I've tried doing these updates, but once they are done my CPU will go to 100% and SQL Server will not launch.

So, any ideas? Should I try to get these service packs working? If so, any idea what I'm doing wrong?
Or, is it a problem with my configuration?

I have my SQL Server settings set up to use Windows and SQL Server Authentication.
In CF when adding the database I use:
Database: noblesqlLocal
Sever: 127.0.0.1 (I've also tried leaving it blank and typing localhost)
Port: 1433
Username: sa
Password: thepasswordiset
I've also tried leaving them blank....

Everytime I get the same error!

Please help I've been trying to get this to work for what seems like forever. Thanks!
This topic has been closed for replies.
Correct answer jeremy1
Well, I never was able to figure out what was wrong...I upgraded to MS SQL 2005 Express Edition and with a few calls to my hosting's tech support got it to work. So who knows what was wrong with 2000 but now at least I have something up and running...

2 replies

Participant
July 22, 2008
I am having the same exact problem. I am frunning CF8 with MSSQL 2000 SP4. I cannot get a MSSQL data source set up. I get the following error:

Connection verification failed for data source: Test_SQL
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Connection refused: connect
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Connection refused: connect.

Is Microsoft SQL 2000 not compatible with Coldfusion 8?
Inspiring
January 10, 2008
Always install the latest service pack for MS SQL server. If you're not using the service pack 4 for MS SQL you are leaving your PC vulnerable to exploits such as Slammer. I have also seen users with SQL RTM unable to connect via ColdFusion's JDBC driver.

If you only need to evaluate SQL on a single PC you might consider MSDE (for 2000) or SQL Express (for 2005)
http://www.microsoft.com/downloads/details.aspx?FamilyID=413744D1-A0BC-479F-BAFA-E4B278EB9147&displaylang=en
jeremy1AuthorCorrect answer
Inspiring
January 10, 2008
Well, I never was able to figure out what was wrong...I upgraded to MS SQL 2005 Express Edition and with a few calls to my hosting's tech support got it to work. So who knows what was wrong with 2000 but now at least I have something up and running...