2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SQL Server に接続できないときに確認すること

Posted at

概要

Visual Studio Code (Windows 10 Pro x64) から SQL Server 2017 に接続する時にハマったので調べたことをメモ。

確認項目

下記のサイトの回答がよくまとまっていてわかりやすかった。

Timeout error while attempting to consume the pre-login handshake - SQL Server Forums

  1. SQL Server データベースエンジンが実行中でない。
  2. SQL Server Browser サービスが実行中でない。
  3. SQL Server ネットワーク構成の TCP/IP プロトコルが無効になっている。
  4. サーバー名が間違っている。
  5. ネットワークに問題がある。
  6. データベースエンジンのインスタンスの TCP/IP ポートがファイアーウォールでブロックされている。
  7. クライアントとサーバーが同じネットワークプロトコルを使用していない。

今回の原因

ファイアーウォールだった。
クライアントはプライベートネットワークになっていたが、サーバー側はパブリックネットワークになっていた。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?