FieldType Element for NotificationClass/Schema/Fields/Field (ADF)
Specifies the Microsoft SQL Server data type for a notification field.
Sintaxis
<NotificationClasses>
<NotificationClass>
...
<Schema>
<Fields>
<Field>
...
<FieldType>
Element Characteristics
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. |
Element Relationships
Relationship | Elements |
---|---|
Parent element |
|
Child elements |
None. |
Notas
FieldType values must conform to SQL Server data types. The following data types are supported by SQL Server 2005 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 Tipos de datos (motor de base de datos).
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.
If you update a FieldType element, updating the application deletes and re-creates the notification class to which it corresponds. This includes dropping and re-creating the SQL Server tables and indexes used by this notification class. Any data existing in the original notification class tables is permanently deleted.
Ejemplo
The following example shows how to specify a notification field data type of datetime.
<FieldType>datetime</FieldType>
Vea también
Referencia
Application Definition File Reference
Otros recursos
Definir el esquema de suscripción
Actualizar instancias y aplicaciones