Skip to content

Add Remove-DbaAgentJobSchedule cmdlet#10273

Open
andreasjordan wants to merge 4 commits intodevelopmentfrom
claude/issue-9687-20260320-1908
Open

Add Remove-DbaAgentJobSchedule cmdlet#10273
andreasjordan wants to merge 4 commits intodevelopmentfrom
claude/issue-9687-20260320-1908

Conversation

@andreasjordan
Copy link
Collaborator

Implements sp_detach_schedule equivalent: removes the association between a job and a schedule without deleting the shared schedule itself.

Closes #9687

Generated with Claude Code

github-actions bot and others added 4 commits March 20, 2026 19:14
Implements sp_detach_schedule equivalent: removes the association between
a job and a schedule without deleting the shared schedule itself. Useful
when a shared schedule must be detached from one job without affecting
other jobs using the same schedule.

(do Remove-DbaAgentJobSchedule)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@andreasjordan andreasjordan marked this pull request as ready for review March 21, 2026 18:55
@ReeceGoding
Copy link
Contributor

Looks good to me! I'm very happy to see that this was possible without resorting to calling the SQL.

The only thing that I can think to add is tests with either multiple jobs or multiple schedules, but I'm pretty sure that the underlying code is solid.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add functionality equivalent to sp_detach_schedule

2 participants