Defining the Core Notification Class

A notification class defines one type of notification to be produced by your application. Each notification class must have a unique name within your application. The table that stores the notification data, as well as other database objects associated with the notification class, can be placed in a filegroup. This topic discusses how to create a core notification class, name it, and place it in a filegroup.

The Core Notification Class

Within your application definition, you define one or more notification classes. The properties you define for the notification class determine the names and location of database objects for the notification class.

You must define the following properties for a notification class:

  • Name
  • Schema
  • Content formatter
  • Supported delivery protocols

You can optionally define the following properties:

  • Digest or multicast delivery
  • Notification batch size
  • Notification expiration age

You cannot define indexes for the notification class tables in the application definition. Notification Services automatically adds indexes that optimize the queries issued by the distributor to format and deliver notifications, and that optimize the queries by the data removal components to remove old notification data.

To define a notification class

If you are defining an application through XML, define notification classes in the application definition file (ADF). If you are defining an application programmatically, use Notification Services Management Objects (NMO) to define notification classes.

Naming the Notification Class

Each notification class in an application must have a unique name. This name is used to create application objects and to run administrative reports.

To name a notification class

Specifying the Filegroup

Each notification class can be placed in a filegroup. If you do not specify a filegroup, the notification table and other database objects are automatically created on the default filegroup for the application database.

For more information about filegroups, see Using Files and Filegroups.

To define the notification class filegroup

If you are defining an application through XML, define a notification class filegroup in the application definition file (ADF). If you are defining an application programmatically, use NMO to define a notification class filegroup.

See Also

Concepts

Defining the Notification Schema
Configuring Content Formatters
Specifying Digest or Multicast Delivery
Specifying the Notification Batch Size
Specifying the Notification Expiration Age
Configuring Data Removal

Other Resources

Configuring Delivery Protocols
Defining Notification Classes

Help and Information

Getting SQL Server 2005 Assistance