To make sure Adaptive Server starts before Monitor Server:
Start the NT Registry Editor (regedt32.exe).
Select:
\\HKEY_LOCAL_MACHINE
Save or print the existing settings before proceeding. From the registry menu, select the Save Subtree As command or the Print command.
In the tree view, highlight the following entry (double-click on top-level entries to expand them):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services
From the list of available services that appears, select the name of the service that corresponds to the Monitor Server. For example, if the name of the Monitor Server is TESTSRV_MS, the registry key may be SYBMON_TESTSRV_MS.
The current configuration values appear.
From the title bar, select Edit.
From the drop-down list, choose Add Value. The Add Value dialog box appears.
In the Value Name box, enter:
DependOnService
In the Data Type box, accept the default if it is correct or use the scroll bar to select the following datatype:
REC_MULTI_SZ
Choose OK.
In the String Editor Data box, enter:
SYBSQL_AdaptiveServer
where AdaptiveServer is the name of the Adaptive Server to be monitored and select OK.
From the Registry Editor menu bar, select Edit.
From the drop-down list select Add Value. The Add Value dialog box opens. In the Value Name box, enter:
DependOnGroup
In the Data Type box, select:
REC_MULTI_SZ
Select OK.
Leave the String Editor Data box empty, select OK, and exit the Registry Editor.
When you restart or log in again, Adaptive Server and Monitor Server automatically start and in the correct order: Adaptive Server first, Monitor Server second.