Have you opened Port 1433 and activated TCP-IP ?
Have you opened Port 1433 and activated TCP-IP ?
So I have this new laptop I'm trying to move my work to. I've installed Railo 3.3.4.003 and SQL Server Express 2008, but I can't get the two to communicate. I have a database which is set up in SQL, and I'm able to create a Windows DSN which can connect to it, so I know it's out there. I also have this set up (same configuration) on another old laptop, but I can't figure out for the life of me what's wrong.
Basically, I can't seem to use either of the SQL drivers (Microsoft and jTDS); both think for a long time and then tell me that they can't find the server. I've confirmed that the firewall isn't the problem (I turned the firewall off to test). I tried using localhost, 127.0.0.1, .\SQLEXPRESS, and MACHINENAME\SQLEXPRESS and none of them make a difference.
The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
So to mirror what I have on the other laptop, I created a Windows Datasource in the control panel (which connects just fine using .\SQLEXPRESS). I then tried to create a DSN in Railo using JDBC-ODBC Bridge Driver as I have on my other laptop, and I get the following error:
[Microsoft][ODBC Driver Manager] Invalid string or buffer length
Can someone help me get a connection from Railo to SQL Server Express 2008?
Thanks!
Thorsten / Andrea:
So I ran "netstat -n | find "1433" and came up with nothing on both the laptop where it's working find (Windows 7 32-bit with the JDBC-ODBC Bridge Driver) and the laptop where it's not working (Windows 7 64-bit). Is this something I need to change in SQL Server to open? I don't need this port open outside of this machine, it's for an app that will only be developed and used on this machine.
Mark:
I had read this issue before, but it doesn't quite match my circumstances. It does sit for a while, but I do get an error message.
Not sure if this helps, but the differences between the two laptops include that the one which is working is 32-bit and the one that is not is the 64-bit version of Windows. On the one that is not working, I had initially installed SQL Express 2012 and uninstalled it, reverting back to SQL Express 2008 (so now it's the same on both machines) because I couldn't get it to connect, and after reading a number of posts on SQL Express 2012 having issues (and trying to install the new 4.0 drivers with no resolution), I gave up on that.