To create and define a Registry key

Use the sybevent.dll file and the regedt32 utility.

To create and define a Registry key:

  1. Log in to Windows NT using an account with NT administrator privileges.

  2. Copy the sybevent.dll file from an Adaptive Server machine if it does not exist on the local computer.

    The sybevent.dll file is stored in the dll subdirectory of the Sybase installation directory (\sybase\dll, by default). The actual location of sybevent.dll on the logging computer is not important, however, you must record a fixed location for the file in the NT Registry.

    NoteYou can use the same sybevent.dll file on the event-logging computer, as long as all Adaptive Servers are at the same Version level; for example, 11.5.1.

  3. Start the NT regedt32 utility.

    For instructions and screens on using this utility with Adaptive Server, see “Increasing Windows Sockets connections”.

  4. Complete the steps in “To create a Registry key” to create a key for a single Adaptive Server.

  5. Complete the steps in “To define a Registry key” to define the key that you just created.

  6. Repeat steps 4 and 5 for each Adaptive Server that is to send messages to the logging site computer.

StepsTo create a Registry key

  1. In the regedt32 utility, select the Registry window named HKEY_LOCAL_MACHINE.

  2. Open the levels until you reach the Registry key named:

    HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Services\EventLog\Application

  3. From the Edit menu, choose Add Key to display the Add Key dialog box.

  4. Complete the dialog box as follows:

    Key Name – type the name of the Adaptive Server computer that is to store the messages at the central logging site.

    Class – leave this box blank. You do not have to specify a class for the new key.

  5. Verify that you have entered the new Registry key correctly.

  6. Click OK.

  7. Complete the steps in “To define a Registry key” to define the key that you just created.

StepsTo define a Registry key

  1. In the regedt32 utility, open the Registry key that you just created.

  2. From the Edit menu, choose Add Value.

  3. Type an event-logging value name as shown in Table 7-2 for the new Registry key. Enter the value name exactly as it is shown in the table; value names are case sensitive.

    Table 7-2: Registry values for a central logging PC

    Value name

    Datatype

    String

    Notes

    CategoryCount

    REG_DWORD

    0x6

    Do not change the data value. Make sure the string value is hexadecimal (Hex).

    CategoryMessageFile

    REG_SZ

    D:\SYBASE\DLL\ SYBEVENT.DLL

    Replace d:\sybase\dll with the path to the sybevent.dll file.

    EventMessageFile

    REG_SZ

    D:\SYBASE\DLL\ SYBEVENT.DLL

    Replace d:\sybase\dll with the path to the sybevent.dll file.

    TypesSupported

    REG_DWORD

    0xff

    Do not change the data value. Make sure the string value is hexadecimal (Hex).

    NoteBe sure to enter the correct path to the sybevent.dll file for the CategoryMessageFile and EventMessageFile values.

  4. Select the data type for the value as named in Table 7-2 from the drop-down list.

  5. Verify that you have entered the new key value and datatype correctly, and click OK.

  6. Type the data or string in the Editor box, and click OK.

  7. Repeat steps 2–6 for the remaining three values in each Registry key.

    The following screen shows a sample Registry Key with the four values for the server named PIANO.

  8. To create another key begin again with“To create a Registry key”.

  9. Once you have created a Registry key for each Adaptive Server, choose Exit from the Registry menu in the Registry Editor dialog box to quit regedt32.