Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » SQL Anywhere database connections » SQL Anywhere database servers » Authenticated SQL Anywhere applications » Authenticated application development

 

Querying the oem_string option from an application

The oem_string database option stores user-specified information in the header page of a database file. You can query this value from an application.

Prérequis

There are no prerequisites for this task.

Contexte et remarques

The oem_string option is set for authenticated applications.

 Task
  1. Open the database system dbspace file.

  2. Read the first page of the file into a buffer.

  3. Search the buffer for the two-byte prefix and suffix sequences before and after the OEM string.

Résultat

The prefix and suffix strings are defined in sqldef.h as DB_OEM_STRING_PREFIX and DB_OEM_STRING_SUFFIX, respectively. All the bytes between these two strings define the OEM string that is defined in the database.

 See also