web-dev-qa-db-ja.com

SQL Serverインスタンスとは何ですか?

にSQL Server 2008 Expressをインストールすると、インスタンスを作成するように求められ、作成しない場合は中止されます。次に、SQL ServerサービスのSQL Server構成マネージャーのエントリにその情報が表示されます。 SQL Serverインスタンスとは何ですか?

14
pupeno

SQL Serverインスタンスは完全なSQLサーバーであり、マシンに多数のインスタンスをインストールできますが、デフォルトのインスタンスは1つしか持てません。

SQL Serverインスタンスには、サーバーファイル、データベース、およびセキュリティ資格情報の独自のコピーがあります。

これ URLが役立つ場合があります

22
Wayne

SQL SERVER INSTANCEデータベースエンジンのインスタンスは、オペレーティングシステムサービスとして実行されるsqlservr.exe実行可能ファイルのコピーです。各インスタンスは、いくつかのシステムデータベースと1つ以上のユーザーデータベースを管理します。各コンピューターは、他のインスタンスとは独立して、データベースエンジンの複数のインスタンスを実行できます。

SQL Serverは3つの主要な部分で構成されています。1.エンジン。これは、ルックアップ、ソート、およびその他のアクションを実行するいくつかのWindowsサービスによって開始されるソフトウェアです。 2. masterデータベースやmsdbシステムデータベースなどのメタデータ。 3.データが保存されるユーザーデータベース。

The master database contains the information that the engine reads when it starts up. It includes such things as security settings, file locations, sort orders, and database locations. The msdb database contains the information used by the SQL Server Agent program and information about maintenance plans. Yet another system database, called model, is the "template" from which other databases are created. Finally, the tempdb database is the "scratch" area that the engine software uses. This format holds true for all versions of SQL Server, although other control mechanisms are also implemented as Dynamic Link Libraries, or DLL’s.

This means that a single installation of SQL Server has only one set of certain data, such as server-level security credentials, scheduling information, temporary files and other meta-data.

Beginning with SQL Server 2000, you can run multiple copies of the software, using what Microsoft calls Instances. Instances share a few files between them, mostly dealing with client tools. This allows you to have two different system administrators (sa accounts) and other server-level security on the same hardware. So if you have different security needs, say running more than one company with different administrators, you can install multiple copies of SQL Server on the same hardware.

Another advantage is that since some of the files that run the Instance are duplicated, you can apply service packs separately to each Instance. That way you can Host several applications on the same hardware that require different service pack levels.

インスタンスを使用すると、製品の複数のバージョンやエディションで作業することもできます。 SQL Serverをインストールしてしばらく実行した後でも、いつでもインスタンスをインストールできます。したがって、インスタンスの場合(しゃれたことはありません)、SQL Server 2005 Express Edition、SQL Server 2005 Enterprise Edition、SQL Server 2008 Standard Edition、およびSQL Server 2008 R2 Developer Editionをすべて同じハードウェアにインストールできます。

If a connection request specifies only the name of the computer only, then connection is made to the default instance. A named instance is one where you specify an instance name when installing the instance. A connection request must specify both the computer name and instance name in order to connect to the instance. The computer name and instance name are specified in the format computer_name\instance_name.

インスタンスは、クライアントツールではなく、主にデータベースエンジンとそのサポートコンポーネントに適用されます。複数のインスタンスをインストールすると、各インスタンスは次の固有のセットを取得します。1.システムデータベースとユーザーデータベース。 2. SQL ServerおよびSQL Serverエージェントサービス。デフォルトのインスタンスの場合、サービスの名前はMSSQLServerとSQLServerAgentのままです。名前付きインスタンスの場合、サービスの名前はMSSQL $ instancenameおよびSQLAgent $ instancenameに変更され、サーバー上の他のインスタンスとは無関係にサービスを開始および停止できるようになります。さまざまなインスタンスのデータベースエンジンは、関連するSQL Serverサービスを使用して開始および停止されます。 SQL Serverエージェントサービスは、データベースエンジンの関連インスタンスのスケジュールされたイベントを管理します。 3.データベースエンジンとSQL ServerおよびSQL Serverエージェントサービスに関連付けられているレジストリキーは、バージョンとリリースを分離します。4.アプリケーションが特定のインスタンスに接続できるように、ネットワーク接続アドレス。

2
Dhyan Mohandas