简体   繁体   English

连接到SQL Server时端口号无效

[英]Port number is not valid while connecting to sql server

When connecting to SQL Server, it shows the port number is not valid. 连接到SQL Server时,它显示端口号无效。 I set up TCP/IP,it still shows Port number is not correct while connecting to sql server: 我设置了TCP / IP,它仍然显示连接到SQL Server时的端口号不正确:

在此处输入图片说明 在此处输入图片说明

If I read https://msdn.microsoft.com/en-us/library/ms378428(v=sql.110).aspx correctly, it says the URL should be jdbc:sqlserver://localhost:1433 or else jdbc:sqlserver://localhost\\friend 如果我正确阅读https://msdn.microsoft.com/zh-cn/library/ms378428(v=sql.110).aspx ,则表示URL应为jdbc:sqlserver:// localhost:1433或jdbc: sqlserver://本地主机\\朋友

Assuming the instance Friend is on port 1433. 假设实例Friend在端口1433上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM