Skip to content

Expose OwnerLoginName as a settable property for JobSchedule objects #120

Closed

Description

While having a discussion in the context of "what happens when the owner of a job schedule is no longer a valid login?", I discovered that the Microsoft.SqlServer.Management.Smo.Agent.JobServer class doesn't have an OwnerLoginName property in the same way that the Job class (same namespace) does. By having this as a settable property, it would allow administrators to set the ownership of a job schedule and prevent potential mishaps.

As a means to set it, sp_update_job already has a @owner_login_name parameter so this feature request is to plumb that into the JobSchedule SMO object.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions