--- title: "SetNumValue Method (SqlServiceAdvancedProperty Class) | Microsoft Docs" ms.custom: "" ms.date: "03/03/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "reference" apiname: - "SetNumValue Method (SqlServiceAdvancedProperty Class)" apilocation: - "sqlmgmproviderxpsp2up.mof" apitype: "MOFDef" helpviewer_keywords: - "SetNumValue method" ms.assetid: a5e1056b-0b75-4ad6-99c1-89246010d815 caps.latest.revision: 33 author: "JennieHubbard" ms.author: "jhubbard" manager: "jhubbard" --- # SetNumValue Method (SqlServiceAdvancedProperty Class) Sets the numeric value of a property. ## Syntax ``` object.SetNumValue(NumValue) ``` ## Parts *object* A [SqlServiceAdvancedProperty Class](../../../relational-databases/wmi-provider-configuration-classes/sqlserviceadvancedproperty-class/sqlserviceadvancedproperty-class.md) object that represents an advanced property. #### Parameters |Parameter|Description| |---------------|-----------------| |*NumValue*|A **uint32** value that specifies the value of the advanced property.| ## Property Value/Return Value A **uint32** value, which is 0 if the service was successfully modified, 1 if the request is not supported, and any other number to indicate an error. ## Remarks The property value type must be numeric to be able to set the property to a numeric value. ## See Also [Starting and Stopping Services](http://technet.microsoft.com/library/ms174886\(v=sql.105\).aspx)