サーバーを SQL Server のフェールオーバーとして追加しようとしていますが、それはポートを使用していません。1443
ポートを使用しています2776
。指定しようとしていますが、試したことはすべてうまくいきませんでした。どうすればそれができますか?
private String url = "jdbc:sqlserver://server1:2776;DatabaseName=db;failoverPartner=server2";
次の構成を試しましたが、どれも機能しませんでした。
...failoverPartner=server2:2776
...failoverPartner=server2,2776
...failoverPartner=server2\\db
しかし、毎回例外が発生します。
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host server2, port 1433 has failed. Error: "connect timed out. 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.".
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host server2:2776, port 1433 has failed. Error: "null. 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.".
com.microsoft.sqlserver.jdbc.SQLServerException: ホスト サーバー 2、2776、ポート 1433 への TCP/IP 接続に失敗しました。エラー: 「null。接続プロパティを確認し、SQL Server のインスタンスがホスト上で実行されていて、ポートで TCP/IP 接続を受け入れていること、ポートへの TCP 接続をブロックしているファイアウォールがないことを確認してください。」.