Compartilhar via


Método Service.Alter

Updates any Service object property changes on an instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (em Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxe

'Declaração
Public Sub Alter
'Uso
Dim instance As Service

instance.Alter()
public void Alter()
public:
virtual void Alter() sealed
abstract Alter : unit -> unit  
override Alter : unit -> unit
public final function Alter()

Implementa

IAlterable.Alter()

Comentários

The Alter method updates any changes that have been made to the Service object's properties since the Service object was created or since the last ALTER statement. The modifications are combined and sent to the instance of SQL Server in a single network trip to the instance of SQL Server.

Exemplos

Gerenciando serviços e configurações de rede através do provedor do WMI

Consulte também

Referência

Service Classe

Namespace Microsoft.SqlServer.Management.Smo.Wmi

Outros recursos

WMI and SQL Server

Conectando ao Mecanismo de Banco de Dados do SQL Server