Поделиться через


Метод SetServiceAccount

Sets the account under which the SQL Server service runs.

Пространство имен:  Microsoft.SqlServer.Management.Smo.Wmi
Сборка:  Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)

Синтаксис

'Декларация
Public Sub SetServiceAccount ( _
    userName As String, _
    password As String _
)
'Применение
Dim instance As Service
Dim userName As String
Dim password As String

instance.SetServiceAccount(userName, _
    password)
public void SetServiceAccount(
    string userName,
    string password
)
public:
void SetServiceAccount(
    String^ userName, 
    String^ password
)
member SetServiceAccount : 
        userName:string * 
        password:string -> unit 
public function SetServiceAccount(
    userName : String, 
    password : String
)

Параметры