Installing Sybase IQ as a Service

Running Sybase IQ as a Windows service lets you start a server automatically whenever the machine is booted and run in the background as long as Windows is running.

StepsCreating a new service

  1. Click Start, point to Programs | Sybase | Sybase IQ 15.0 | Sybase IQ Service Manager.

  2. Choose Create a New Service.

  3. Assign a name to the new service.

  4. Add the appropriate start-up parameters.

    Include the full path to the database file. The server cannot start without a valid database path name. For an example of start-up parameters, see %ALLUSERSPROFILE%SybaseIQ\demo\iqdemo.cfg.

  5. Click Apply.

NoteNotes

Suppressing Windows event log messages

If you run the database server as a Windows service, you can set the Software\Sybase\Adaptive Server Anywhere\11.0 registry entry to suppress event log entries.

To control event log entries, set the EventLogMask key, which is of type REG_DWORD. The value is a bit mask containing the internal bit values for the different types of event messages:

errors EVENTLOG_ERROR_TYPE 0x0001
warnings EVENTLOG_WARNING_TYPE 0x0002
information EVENTLOG_INFORMATION_TYPE 0x0004

If the EventLogMask, for example, is set to zero, no messages appear at all. Setting EventLogMask to 1 surpresses informational and warning messages, but logs all errors messages. The default setting (no entry present) logs all message types to appear.

Granting Administrator privilege to the Sybase IQ service

You must assign Administrator privileges to a Sybase IQ service when raw device access is required.

StepsGranting Administrator privilege to the Sybase IQ service

  1. Click Start, point to Settings, choose Control Panel | Administrative Tools | Services.

  2. Right-click the Sybase IQ service, choose Properties.

  3. On the Properties sheet, choose Automatic as the Startup Type.

  4. Click the Log On tab, then click This account.

  5. Assign the account to a user with Administrative privileges. In the account box, type the administrator’s user ID, then type and confirm the user’s password in the appropriate text boxes.

  6. Click OK to close the Property sheet.

  7. Click Close to close the Services console.