Compartir a través de


OwnerLoginName Propiedad

Gets or sets the owner of the job.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute> _
Public Property OwnerLoginName As String
    Get
    Set
'Uso
Dim instance As Job
Dim value As String

value = instance.OwnerLoginName

instance.OwnerLoginName = value
[SfcPropertyAttribute]
public string OwnerLoginName { get; set; }
[SfcPropertyAttribute]
public:
property String^ OwnerLoginName {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member OwnerLoginName : string with get, set
function get OwnerLoginName () : String
function set OwnerLoginName (value : String)

Valor de la propiedad

Tipo: System. . :: . .String
A String value that specifies the logon name of the job owner.

Notas

Microsoft SQL Server establishes ownership rules for jobs. Some permissions default to a job owner, and ownership forms one part of SQL Server access control.

Set the OwnerLoginName property to change ownership for the referenced job. The value must specify an existing SQL Server database user. Permission to change job ownership defaults to members of the sysadmin group.