LoginSignup
2
2

More than 5 years have passed since last update.

SQL SERVERでTCP/IP Errorが表示されたときの対処法

Posted at

SQL Serverを触っていると様々なエラーが出ます。(エンジニアさんは毎回どのシステムを触っていてもエラーはでると思いますが。)

そんなエラーが出たときのためにQiitaに備忘録としてためておきます。

今回は下記。

ERROR: The TCP/IP connection to the host 127.0.0.1, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".

こんなエラーが出たときには下記のような対処を行う。

今回のエラーが出る原因としていくつかあげられるとは思いますが、
今回引っ掛かった対処方法を記載しておきます。

よくわかりませんが、netstatでportの起動を見ると
SQLServer自体は起動していたのですが、SQL Server 構成マネージャーを
見てみるとSQLServerは動いてないと言っていた。。。

なので下記手順で対応しました!

①SQL Server 構成マネージャーを開く
 ※構成マネージャーは僕の場合下記パスに配置してありました。
 C:\Windows\System32\SQLServerManager14.msc

②SQLServerのサービスをクリック
③SQLServer上で右クリックして実行する。

また何かあれば書きます。

2
2
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
2