Esporta (0) Stampa
Espandi tutto
Espandi Riduci a icona

FieldType Element for EventClass/Schema/Field (ADF)

SQL Server 2005

Specifies the SQL Server data type of the event field.


<EventClasses>
    <EventClass>
        ...
        <Schema>
            <Field>
                ...
                <FieldType>

Characteristic Description

Data type

string, between 1 and 255 characters in length.

Default value

None.

Occurrence

Required once per Field element.

Updates

Can be modified, but not added or deleted, when updating the application.

Relationship Elements

Parent element

Field Element for EventClass/Schema (ADF)

Child elements

None.

FieldType values must conform to SQL Server data types. The following data types are supported by Notification Services:

bigint

float

real

tinyint

binary

int

smalldatetime

uniqueidentifier

bit

money

smallint

varbinary

char

nchar

smallmoney

varchar

datetime

nvarchar

sql_variant

xml

decimal

numeric

 

 

The text, ntext, and image data types are not supported because they cannot be used as values for parameters and variables in stored procedures. In addition, the timestamp data type is not supported. For more information about SQL Server data types, see Tipi di dati (Motore di database).

If using the xml data type with the XSLT content formatter, the content formatter might attempt to transform the XML data. To preserve the XML markup, set the content formatter's DisableEscaping argument to false.

ms145291.note(it-it,SQL.90).gifImportante:
If you update a FieldType element, updating the application deletes and re-creates the event class to which it corresponds. This includes dropping and re-creating the SQL Server tables and indexes used by this event class. Any data existing in the original event class tables is permanently deleted.

The following example shows how to specify a event field data type of char(10), which is 10 bytes of non-Unicode character data.

<FieldType>char(10)</FieldType>

Aggiunte alla community

AGGIUNGI
Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
Mostra:
© 2014 Microsoft