다음을 통해 공유


InputSchema Element (ADF)

Specifies the database schema name for the condition action's input.

구문

<ConditionAction>
    ...
    <InputSchema>

Element Characteristics

Characteristic Description

Data type

string, between 1 and 128 characters in length.

Default value

The application's schema. The default application schema is dbo.

Occurrence

Optional once per ConditionAction element. If you do not specify the input schema, the input must be in the application's schema.

Updates

You can modify, add, or delete this element when updating the application. Modifying the input schema or name is equivalent to deleting and then adding the rule.

Element Relationships

Relationship Elements

Parent element

ConditionAction Element (ADF)

Child elements

None.

주의

When you use a condition action, you must specify which view or table contains the event data. This view or table is in a schema.

  • If the input is the view named after the event class, the schema is the application schema. The application schema can be specified when defining the application database, or it can be the default value of dbo. For more information, see 응용 프로그램 데이터베이스 정의.
  • If the input is an event chronicle, the schema is defined in the CREATE TABLE statement that creates the event chronicle. This is usually the same as the application schema. For more information, see 이벤트 클래스에 대한 기록 정의.

For more information about condition actions, see 조건 작업 정의.

The following example shows how to define a condition action. The query in the Transact-SQL expression selects data from the MyAppSchema.WeatherEventRule view, which contains data from the subscription class and from the MyAppSchema.WeatherEvents event view.

<ConditionAction>
    <SqlLogin>[MyLowPrivLogin]</SqlLogin>
    <SqlUser>[MyLowPrivUser]</SqlUser>
    <InputName>WeatherEvents</InputName>
    <InputSchema>MyAppSchema</InputSchema>
    <SqlExpression>
        INSERT INTO MyAppSchema.WeatherNotifications(SubscriberId, 
        DeviceName, SubscriberLocale, City, Forecast) 
        SELECT [Subscription.SubscriberId], [Subscription.DeviceName], 
            [Subscription.SubscriberLocale], [Input.City], 
            [Input.Forecast])
        FROM MyAppSchema.WeatherEventRule;
    </SqlExpression>
</ConditionAction>

참고 항목

참조

Application Definition File Reference

개념

Instance Configuration File Reference

관련 자료

조건 작업 정의
구독 규칙 정의
사용자와 스키마 분리

도움말 및 정보

SQL Server 2005 지원 받기