次のコードを使用して、アプリケーションで Sql サーバーに接続しようとしています。
SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString = "Data Source = (local);Initial Catalag = Inventory;
Persist Security Info = false;
Integrated Security = true;
Packet Size = 4096;Connect TimeOut = 30";
myConnection.Open();
ここで、Inventory はデータベースであり、ローカル マシンに存在します。
「エラー 40: SQL Server への接続を開けませんでした」 ---上記のコードの実行中にエラーが発生します。