Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 1.39 KB

File metadata and controls

51 lines (42 loc) · 1.39 KB
title ExitCode Property (SqlService Class) | Microsoft Docs
ms.custom
ms.date 06/13/2017
ms.prod sql-server-2014
ms.reviewer
ms.suite
ms.technology
database-engine
docset-sql-devref
ms.tgt_pltfrm
ms.topic reference
api_name
ExitCode Property (SqlService Class)
api_location
sqlmgmproviderxpsp2up.mof
topic_type
apiref
helpviewer_keywords
ExitCode property
ms.assetid e6b8bff2-946f-4abe-bd50-1f7bb11fdddf
caps.latest.revision 34
author JennieHubbard
ms.author jhubbard
manager jhubbard

ExitCode Property (SqlService Class)

Gets or sets the [!INCLUDEmsCoName] Win32 error code that defines problems encountered when starting and stopping the service.

Syntax

  
object  
.ExitCode [= value]  

Parts

object
A SqlService Class object that represents the service.

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

Starting and Stopping Services