다음을 통해 공유


SetServiceAccount 메서드

Sets the account under which the SQL Server service runs.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Wmi
어셈블리:  Microsoft.SqlServer.SqlWmiManagement.dll의 Microsoft.SqlServer.SqlWmiManagement

구문

‘선언
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
)

매개 변수