Service.Alter 方法

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

命名空间:  Microsoft.SqlServer.Management.Smo.Wmi
程序集:  Microsoft.SqlServer.SqlWmiManagement(在 Microsoft.SqlServer.SqlWmiManagement.dll 中)

语法

声明
Public Sub Alter
用法
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()

实现

IAlterable.Alter()

注释

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.

示例

使用 WMI 提供程序管理服务和网络设置

请参阅

参考

Service 类

Microsoft.SqlServer.Management.Smo.Wmi 命名空间

其他资源

WMI and SQL Server

连接到 SQL Server 数据库引擎