General Steps for Using the SMS API to Manage Queries

Your application can use the SMS API to manage the queries in a site database. In the SMS API, queries are represented as persistent machine filters in a filter container.

You manage persistent machine filters within a filter container by using the Filter Container functions. You handle persistent machine filters and their tokens by using the Filter functions.

The following procedures describe the general steps for reading the properties of existing persistent machine filters, and for creating new persistent machine filters.

    To create an application that uses the SMS API to manage persistent machine filters (queries) in a site database
  1. Include the header file.
  2. Connect to the site database.
  3. Open and populate a filter container.
  4. Retrieve persistent filters.
  5. Retrieve scalars for the persistent filters.
  6. Retrieve tokens for the persistent filters.
  7. Create a persistent filter.
  8. Close filters and filter containers.
  9. Disconnect from the site database.