共用方式為


SchemaName Element (ICF)

Specifies the database schema for all instance database objects.

語法

<Database>
    <DatabaseName>

Element Characteristics

Characteristic Description

Data type

string, between 1 and 128 characters in length.

Default value

dbo.

Occurrence

Optional once per Database element. Required if using the DatabaseName element.

Updates

Cannot be added, deleted, or modified when updating the application.

Element Relationships

Relationship Elements

Parent element

Database Element (ICF)

Child elements

None.

備註

In SQL Server 2005 Notification Services, you can specify the name of the instance database. This database can be a new or existing database. Because the instance database objects should be isolated from other instance or application database objects, you should specify a unique schema name if you specify a database name.

All instance database objects are created in the specified schema.

If you do not specify the database name and schema name, Notification Services creates a new database with the name instanceNameNSMain, where instanceName is the value of the InstanceName element, and creates all instance objects in the dbo schema.

For more information about database schemas, see 使用者結構描述分隔.

範例

The following example shows how define an NSInstance schema for all instance objects.

<SchemaName>NSInstance</SchemaName>

請參閱

參考

Application Definition File Reference

概念

Instance Configuration File Reference

其他資源

定義執行個體資料庫
CREATE SCHEMA (Transact-SQL)
更新執行個體及應用程式

說明及資訊

取得 SQL Server 2005 協助