Diagnosing Connection to SQL Server

前端 未结 4 1052
温柔的废话
温柔的废话 2021-01-03 16:10

I\'m trying to create an ODBC connection to SQL Server, but when i do, i get error:

Connection failed:
SQLState: \'01000\'
SQL Server Error: 10060
[Microsoft         


        
4条回答
  •  轮回少年
    2021-01-03 16:52

    Found the issue. For some reason, even though SQL was not in use on the client, it was installed, and by going to All Programs -> Microsoft SQL Server -> Client Network Utility, i found that the protocal TCP/IP was using port 4717. I have no idea why that port was in use, and even further, i'm not sure why it would even matter - I was just setting up an odbc connection, and not using sql server (on the client) at all. Either way, I changed this to the typical port (1433), and like boom, ODBC connection works like charm!

提交回复
热议问题