ExitCode Property (SqlService Class)

Gets or sets the Microsoft Win32 error code that defines problems encountered when starting and stopping the service.

object.ExitCode [= value]


A SqlService Class object that represents the service.

A uint32 value that specifies the exit code.

This property is set to ERROR_SERVICE_SPECIFIC_ERROR (1066) when the error is unique to the service represented by this class. The service sets this value to NO_ERROR when running, and again upon normal termination.

Community Additions