当我安装SQL Server 2008 Express时会提示我创build一个实例,如果没有,则会中止。 然后,我在SQL Server Services上的Sql Serverconfigurationpipe理器中的一个条目中看到这些信息。 什么是SQL Server实例?
SQL Server实例是一个完整的SQL服务器,您可以在计算机上安装多个实例,但只能有一个默认实例。
SQL Server实例具有自己的服务器文件副本,数据库和安全证书。
此url可能会帮助你
SQL SERVER INSTANCE数据库引擎的实例是作为操作系统服务运行的sqlservr.exe可执行文件的副本。 每个实例pipe理多个系统数据库和一个或多个用户数据库。 每台计算机都可以独立于其他实例运行数据库引擎的多个实例。
SQL Server由三个主要部分组成:1.一个引擎,它是由几个执行查找,sorting和其他操作的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 $实例名称和SQLAgent $实例名称,允许独立于服务器上的其他实例启动和停止它们。 不同实例的数据库引擎使用关联的SQL Server服务启动和停止。 SQL Server代理服务pipe理数据库引擎关联实例的计划事件。 3.与数据库引擎关联的registry项与SQL Server和SQL Server Agent服务分开版本和版本。4.networking连接地址,以便应用程序可以连接到特定实例。