Solving MS SQL "connection refused" Errors and running MS SQL on a MacBook Pro
Posted At : November 14, 2006 11:51 AM
| Posted By : Mark Drew
Related Categories:
coldfusion,
microsoft,
reference,
apple
I did a fresh install of Windows with ColdFusion 7.02 and MS SQL 2000 (SP2?) under Parallels on my MacBook Pro the other day. After I had installed everything I tried to set up a DSN in ColdFusion but I kept getting "connection refused" errors, no matter what I did. I did a lot of googling to find a solution and found lots of work arounds including setting up a ODBC data-source. None of these were satisfying, I mean, you SHOULD be able to connect to a database right? That's the whole point!
So that I don't do the same mistake again I thought I would blog it. The solution is actually rather simple, you just have to install Microsoft SQL Server 2000 Service Pack 3a. That totally solves the problem. (I haven't checked with upgrading to Service Pack 4 yet.)
On a related note, I was able to connect to the Microsoft SQL Server running under Parallels from OS X. Pretty neat!



Cheers
</cliff>
I am sure you are looking forward to it Cliff! One thing to note, is that I am connecting via the IP, so basically I am connecting via the network to the Parallels "machine", so if the IP changes, then you won't be able to connect (as it happens every day when I go from work -> home)
MD
What you ran into is actually a common problem. I don't know the exact cause for it, so I couldn't give you the steps to recreate it. Just as a rule of thumb, you should ALWAYS make sure that SQL Server is at the latest service pack. Actually just install the service pack right after you install MSSQL and you should never have these weird problems.
I had all sorts of similar hair-tearing frustrations setting up MS SQL on a XP laptop recently - turned out that it was that blimmin' Windows Firewall, and all I needed to do was change the TCP connection binding from the default port (1433) to a higher port (eg 11433). Can't say anything about MacBooks though - apart from that we've gone through 3 in the last week here, with total hard disk failures. Good luck! ;)
They are normally a lot sturdier than any windows based laptop that I have encountered (please, no flames, I like my Mac, I wont turn back)
MD
I am abandoning CF on the Mac side for now mainly because I am giving up on MySQL and will need Parallels running MS SQL anyway.
what do you know about SQL Server 2005? I'm having the same issue and was wondering if you or anyone else had a solution. I'm also running SQL Server on my MBP.
Basically by default you the TCP/IP stack is not enabled so you have to enable it
Will get to that now.
Hope that helps!