SetHostLoginAccount 方法
Sets the SQL Server authentication account and password used to log in to SQL Server.
命名空间: Microsoft.SqlServer.Management.Smo.Agent
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub SetHostLoginAccount ( _
loginName As String, _
password As String _
)
用法
Dim instance As JobServer
Dim loginName As String
Dim password As String
instance.SetHostLoginAccount(loginName, _
password)
public void SetHostLoginAccount(
string loginName,
string password
)
public:
void SetHostLoginAccount(
String^ loginName,
String^ password
)
member SetHostLoginAccount :
loginName:string *
password:string -> unit
public function SetHostLoginAccount(
loginName : String,
password : String
)
参数
- loginName
类型:System. . :: . .String
A String value that specifies the SQL Server Authentication login name.
- password
类型:System. . :: . .String
A String value that specifies the SQL Server Authentication password.
注释
只有 SQL Server 7.0 和 SQL Server 2000 支持此属性。