Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connectionsエラーが発生しましたSQL Server 2005での接続を確立するために、ローカルおよびリモート接続を許可されません
When connecting to an instance of Microsoft SQL Server 2005 database, including SQL Server 2005 Express, Developer and Enterprise editions, for authentication or accessing and retrieving and updating the data, the the following error message may appear.に接続する際のインスタンスをMicrosoft SQL Server 2005データベースは、 SQL Server 2005の表現を含め、開発者およびEnterpriseエディションには、認証やアクセスし、更新してデータを取得すると、 5月には、次のエラーメッセージが表示されます。 The problem happens no matter the connection is originated from remote computer or on SQL Server local computer itself, and can be caused by any program, such as SQLCMD utility, used to connect to SQL Server.問題が発生するの由来に関係なく、接続がSQL Server上のリモートコンピュータまたはローカルコンピュータ自体は、任意のプログラムによって引き起こされることなど、 Sqlcmdユーティリティは、使用してSQL Serverに接続する。
Sqlcmd: Error: Microsoft SQL Native Client: An error has occurred while establishing a connection to the server. sqlcmd :エラー:マイクロソフトのSQLネイティブクライアント:中でエラーが発生しましたサーバーへの接続を確立する。 When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. 2005年のSQL Serverに接続するときに、このエラーによって引き起こされるという事実5月のデフォルトの設定されてSQL Serverのリモート接続は許可されません。
Or,または、
An error has occurred while establishing a connection to the server.中にエラーが発生しましたサーバーへの接続を確立する。 When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. 2005年のSQL Serverに接続するときに、このエラーによって引き起こされるという事実5月のデフォルトの設定されてSQL Serverのリモート接続は許可されません。 (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2) (プロバイダ:名前付きパイププロバイダ、エラーが発生: 40 -開くことができませんでした接続してS QLS erver) ( M icrosoftS QLS erver、エラー: 2 )
This problem may occur when SQL Server 2005 is not configured to accept incoming local and remote connections, which is disabled by default in SQL Server 2005 Express Edition, SQL Server 2005 Developer Edition and also SQL Server 2005 Enterprise Edition.この問題を回避するときに発生することがありますSQL Server 2005は着信設定しない場合は、ローカルおよびリモート接続を受け入れる、これはデフォルトで無効にSQL Server 2005のExpress Editionを、 SQL Server 2005のデベロッパー版ともSQL Server 2005のEnterprise Editionです。 To solve the connection forbidden problem, SQL Server 2005 needs to configure to allow incoming local and remote connections.の接続を禁止されて問題を解決するために、 SQL Server 2005のニーズを構成する、ローカルおよびリモート接続を受信できるようにします。
Firstly, ensure that SQL Server 2005 is configured properly to allow incoming connections on the instance of database server, else enable and turn on the local and remote connections setting.まず、 SQL Server 2005は確認して適切に構成上の着信接続を許可するデータベースサーバーのインスタンスを、他のを有効にして電源をオンにし、ローカルおよびリモート接続の設定です。
- Click Start button, then go to Programs or All Programs, then select Microsoft SQL Server 2005 , followed by Configuration Tools .スタート]ボタンをクリックしてボタンを押すと、入力し、 [プログラム]または[すべてのプログラム] 、 Microsoft SQL Server 2005のを選択し、続いて構成ツールです。 Click and run the SQL Server Surface Area Configuration .をクリックして実行してSQL Serverの表面積の構成です。
- On the “SQL Server 2005 Surface Area Configuration” page, click Surface Area Configuration for Services and Connections .上の" SQL Server 2005の表面エリアの設定"ページをクリックし、 [ サービスとの接続の設定を表面に表示します。
- On the “Surface Area Configuration for Services and Connections” page, expand Database Engine tree, click Remote Connections .上の"サービスとの接続の設定を表面積"のページで、 [ データベースエンジンのカテゴリをクリックし、 [ リモート接続します。
- Select Local and remote connections , or Local connections only which applicable only if there is no remote system tries to connect to the SQL Server, useful when you just trying to connect and authenticate with the server after installing. ローカルおよびリモート接続を選択するか、またはローカル接続のみにのみ適用しようとするがない場合はリモートシステムは、 SQL Serverに接続するには、便利なだけに接続しようとするときや、サーバーをインストールした後で認証にします。
- Select the appropriate protocol to enable to local and/or remote connections environment.を選択し、適切なプロトコルを有効にするローカルおよび/またはリモート接続環境です。 To ensure maximum compatibility, select Using both TCP/IP and named pipes .最大の互換性を確保するため、 両方を使用して選択し、 TCP / IPおよび名前付きパイプです。
- Click Apply button when done.ボタンをクリックしたら、 [ 適用 ]をクリックします。
- Click OK button when prompted with the message saying that “Changes to Connection Settings will not take effect until you restart the Database Engine service.”クリックしてOKボタンを押すと言っているというメッセージが表示されたら"接続の設定の変更を反映さはないがデータベースエンジンのサービスを再起動するまでです。 "
- On the “Surface Area Configuration for Services and Connections” page, expand Database Engine , then click Service .上の"サービスとの接続の設定を表面積"のページで、 [ データベースエンジンをクリックし、 [ サービスです。
- Click Stop button to stop the SQL Server service.クリックし、 [ 停止ボタンをクリックし、 SQL Serverのサービスを停止します。
- Wait until the MSSQLSERVER service stops, and then click Start button to restart the MSSQLSERVER service. MSSQLServerサービスを停止するまで待って、 スタート]ボタンをクリックし、 [ MSSQLServerサービスを再起動する]ボタンをクリックします。
Secondly, SQL Server Browser service has to be enabled to allow for local and remote connections if SQL Server 2005 is running by using an instance name and users are not using a specific TCP/IP port number in the connection string.第二に、 SQL Server Browserサービスが有効になっては、ローカルおよびリモート接続を許可するためのSQL Server 2005が実行されている場合のインスタンスを使用してユーザー名を使用していないと、特定のTCP / IPポート番号は、接続文字列です。
- Click Start button, then go to Programs or All Programs, then select Microsoft SQL Server 2005 , followed by Configuration Tools .スタート]ボタンをクリックしてボタンを押すと、入力し、 [プログラム]または[すべてのプログラム] 、 Microsoft SQL Server 2005のを選択し、続いて構成ツールです。 Click and run the SQL Server Surface Area Configuration .をクリックして実行してSQL Serverの表面積の構成です。
- On the “SQL Server 2005 Surface Area Configuration” page, click Surface Area Configuration for Services and Connections .上の"表面積SQL Server 2005の構成"のページをクリックし、 [ サービスとの接続の設定を表面に表示します。
- On the “Surface Area Configuration for Services and Connections” page, click SQL Server Browser .上の"サービスとの接続の設定を表面積"のページをクリックし、 [ SQL Serverのブラウザです。
- Select Automatic as the Startup type to start SQL Server Browser service automatically every time system starts. 自動としてのスタートアップの種類を選択しSQL Server Browserサービスを開始するたびに自動的にシステムが起動します。
- Click Apply button. [ 適用 ]ボタンをクリックします。
- Click on Start button to start the service immediately. スタート ]ボタンをクリックしてすぐにサービスを開始する。
- Click OK button. [ OK ]をクリックボタンをクリックします。
Finally, if remote computer needs to connect and access SQL Server, an exceptions in Windows Firewall included in Windows XP SP2 (Service Pack 2), Windows Server 2003 and Windows Vista needs to be created.最後に、リモートコンピュータに接続し、 SQL Serverにアクセスする必要が、 Windowsファイアウォールの例外では、 Windows XP SP2に含まれるもの(サービスパック2 )は、 Windows Server 2003およびWindows Vistaを作成する必要があります。 If you’re using third-party firewall system, the exception rules also needed to be created to allow external remote connections to the SQL Server 2005 and SQL Server Browser Service to communicate through the firewall, else connections will be blocked.を使用している場合はサードパーティ製のファイアウォールのシステムでは、例外ルールを作成するにも必要に応じて外部のリモート接続を許可するには、 SQL Server 2005およびSQL Serverブラウザを経由して通信サービスをファイアウォール、他の接続がブロックされる。 Consult the firewall manual for more details.相談は、ファイアウォールのマニュアルを参照してください。 Each instance of SQL Server 2005 must have its own exception, together with an exclusion for SQL Server Browser service. SQL Server 2005の各インスタンス必要があります。独自の例外を除いて、除外と一緒に、 SQL Server Browserサービスです。
SQL Server 2005 uses an instance ID as part of the path when you install its program files. SQL Server 2005のインスタンス番号を使用するの一環として、そのプログラムをインストールするときにファイルのパスです。 To create an exception for each instance of SQL Server, you must identify the correct instance ID.を作成してSQL Serverの各インスタンスの例外を、正しいインスタンス番号を識別する必要があります。 To obtain an instance ID, follow these steps:インスタンスIDを取得するには、次の手順を実行します:
- Click Start button, then go to Programs or All Programs, then select Microsoft SQL Server 2005 , followed by Configuration Tools .スタート]ボタンをクリックしてボタンを押すと、入力し、 [プログラム]または[すべてのプログラム] 、 Microsoft SQL Server 2005のを選択し、続いて構成ツールです。 Click and run the SQL Server Configuration Manager .をクリックして実行してSQL Server構成マネージャを起動します。
- In “SQL Server Configuration Manager”, click the SQL Server Browser service in the right pane, right-click the instance name in the main window, and then click Properties . 、 " SQL Server構成マネージャ"をクリックし、 [ ブラウザサービスは、 SQL Serverし、右側のペインで、インスタンスの名前を右クリックして、メインウィンドウの、と入力し、 [ プロパティ ]をクリックします。
- On the “SQL Server Browser Properties” page, click the Advanced tab, locate the instance ID in the property list.上の" SQL Serverのブラウザのプロパティ"のページをクリックし、 [ 詳細設定 ]タブで、 [プロパティ]を見つけのインスタンス番号のリストです。
- Click OK button. [ OK ]をクリックボタンをクリックします。
Then create an exception for SQL Server 2005 in Windows Firewall.入力し、 SQL Server 2005での例外を作成するWindowsファイアウォールです。
- Click on Start button, the click on Run and type firewall.cpl , and then click OK.スタート]ボタンをクリックしてボタンを押すと、このタイプをクリックして実行し、 Firewall.cplと入力し、 [ OK ]をクリックします。 For Windows Vista, type firewall.cpl in Start Search box and press Enter key, then click on Allow a program through Windows Firewall link on left tasks pane. for Windows Vistaの、タイプの検索ボックスにFirewall.cplと入力してEnterキーをスタート]ボタンをクリックし、 [ Windowsファイアウォール経由でプログラムを許可するタスク]ウィンドウ左側のリンクをクリックします。
- In “Windows Firewall”, click the Exceptions tab, and then click Add Program .の" Windowsファイアウォール"をクリックし、 [ 例外 ]タブで、 プログラムと入力し、 [ 追加 ]をクリックします。
- In the “Add a Program” window, click Browse button.は、 "プログラムを追加する"ウィンドウをクリックし、 [ 参照]ボタンをクリックします。
- Click the C:\Program Files\Microsoft SQL Server\ MSSQL.1 \MSSQL\Binn\sqlservr.exe executable program, click Open button. MSSQL.1 with is a placeholder for the instance ID that is obtained from previous procedure.クリックしてはC : \ Programファイル\ Microsoft SQL Serverの\ mssql.1て\ MSSQL \ Binnに\ Sqlservr.exeの実行可能プログラムは、 [開く]ボタンをクリックします。 mssql.1には、インスタンス番号のプレースホルダを得られることは、前の手順を実行します。 Note that the path may be different depending on where SQL Server 2005 is installed.に注意してのパスに応じてどこが異なる場合がありますSQL Server 2005がインストールされます。
- Click OK button. [ OK ]をクリックボタンをクリックします。
- Repeat steps 1 through 5 for each instance of SQL Server 2005 that needs an exception.手順1 〜 5の各SQL Server 2005のインスタンスを必要とする例外が発生します。
- For SQL Server Browser service, locate the C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe executable program, and click Open button. SQL Server Browserサービスを、見つけはC : \ Programファイル\ Microsoft SQL Serverの\ 90 \共有\ sqlbrowser.exe実行可能プログラム、および[ 開く ] をクリックボタンをクリックします。
- Click OK button. [ OK ]をクリックボタンをクリックします。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- How to Customize, Modify or Change WordPress Database Connection Error Pageをカスタマイズする方法、修正、または変更WordPressのデータベースへの接続エラーページ
- Uninstall and Remove Multiple Database Instances of Microsoft SQL Server 2005をアンインストールし、複数のデータベースのインスタンスを削除するMicrosoft SQL Server 2005の
- Remote Connections Manager for RDP, VNC, SSH, RLogin and More mRemote Free Downloadリモート接続マネージャのRDPは、仕様をVNC 、 SSHを使って、他のmremote rloginの無料ダウンロード
- Connect to Remote Computer using Specific Non Standard Port using Remote Desktop Connection Clientリモートコンピュータに接続して使用して特定の非標準ポートを使用してリモートデスクトップ接続クライアント
- Easily Maintain Multiple Remote Desktop Connections with visionapp Remote Desktop (vRD)簡単に複数のリモートデスクトップ接続を維持するvisionappリモートデスクトップ( vrd )
- Modify and Change Remote Desktop Listening Port改変したり、リモートデスクトップのリスニングポートを変更
- Workaround to Run VNC Server in Windows Vista回避策Windows VistaでVNCサーバを実行する
- Oracle Database Link Oracleデータベースのリンク
- Workaround for Remote Desktop Client to Connect to Localhost (Local Terminal Server Service)回避策リモートデスクトップクライアントに接続するにはlocalhostの(ローカルターミナルサーバーサービス)
- Oracle EXP-00091 Error When Export Database Oracleの輸出- 00091エラーが発生する輸出データベース
April 17th, 2008 02:34 2008年4月17日02:34
Thank you for this.このいただきありがとうございます。 Very useful.非常に有益です。
July 22nd, 2008 23:16 2008年7月22日23:16
Thanks!ありがとう! Your solution worked fine for me!素晴らしい仕事をして解決策ミー! Appreciate all the help!感謝のすべての助けて!