SchemaName Element (ADF)

Specifies the database schema for all application 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 instance.

Element Relationships

Relationship Elements

Parent element

Database Element (ADF)

Child elements

None.

Замечания

In SQL Server 2005 Notification Services, you can specify the name of the application database. This database can be a new or existing database. Because the application database objects must be isolated from other instance or application database objects, you should specify a unique schema name if you specify a database name. For more information about database schemas, see Отделение пользователей от схем.

All application 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 instanceName + applicationName, and creates all application database objects in the dbo schema. The instance name and application name are specified in the instance configuration file (ICF).

For more information about database schemas, see Отделение пользователей от схем.

Пример

The following example shows how define a Stock schema for all application database objects.

<SchemaName>Stock</SchemaName>

См. также

Справочник

Application Definition File Reference

Основные понятия

Instance Configuration File Reference

Другие ресурсы

Определение базы данных приложений
Отделение пользователей от схем
CREATE SCHEMA (Transact-SQL)
Обновление экземпляров и приложений

Справка и поддержка

Получение помощи по SQL Server 2005