标签: java sql sql-server jdbc
连接到SQL Server时,显示端口号无效。 我设置了TCP / IP,它仍然显示连接到sql server时端口号不正确:
答案 0 :(得分:0)
如果我正确阅读https://msdn.microsoft.com/en-us/library/ms378428(v=sql.110).aspx,则表示网址应为 jdbc:sqlserver:// localhost:1433或者jdbc:sqlserver:// localhost \ friend
假设实例Friend在端口1433上。