ExitCode Property (SqlService Class)

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

Syntax

object.ExitCode [= value]

Parts

Property Value/Return Value

A uint32 value that specifies the exit code.

Remarks

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.

See Also

Concepts