-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection problems - Error code 0x102 #576
Comments
I understand that. My example shows me using the port 1434. |
@keithslater, your problem may come from many places. It is difficult to pinpoint where the problem comes from. Here's a list of solution for you to try out:
|
php -i | grep "Configure Command" Double checking the port but I can connect to it on the port via Navicat. |
@keithslater, looks like you have 2 different unixODBC installed. I'm not sure if this is the source of the problem, but after you've checked the port number of your SQL Server, you can try to uninstall your current unixODBC, and then install the latest unixODBC version using apt-get. You can revisit issue 231 to see how to uninstall and install unixODBC properly. |
Looks like it is a port issue. I was able to run the command it gave me a different port than I was expecting. I set the port based on this article to 1434 - https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port Is this not the correct port to set? I am in the process of getting access to Configuration Manager so I can double check the settings. |
Which IP (IP1 to IPAll) did you change? Make sure the IP you're configuring is the one you want to use. One thing you can try is to change the |
So IP2 had the IP address listed I was trying to connect on 10.10.0.81 with the static port configured 1434. So from what I can tell, IP2 was configured correctly. However, IPAll had the dynamic port listed that I was able to actually connect on. We're going to change IP2 back to dynamic and move the static port to IPAll. Hopefully that should fix the issue. Not exactly sure why it didn't work. |
Switching the static port to IPAll fixed the issue. |
Having problems getting connected to a SQL Server. Here is the command I'm using for testing -
sqlcmd -S 10.10.0.81,1434 -U username -P password -d database
I have assigned the static port 1434 to the named instance 10.10.0.81\SQLEXPRESS.
I have tested this connected via Navicat and it connects successfully through the IP and port. The port is wide open to all internal IPs.
unixODBC 2.3.1
Not sure what else to try at this point.
The text was updated successfully, but these errors were encountered: