Udostępnij przez


How to: Automatically Delete a Job (SQL Server Management Studio)

This topic describes how to configure Microsoft SQL Server Agent to automatically delete jobs when they succeed, fail, or complete.

Aby automatycznie usuwać zadanie

  1. W Eksplorator obiektów połączyć się z wystąpienie SQL Server Database Engine, a następnie rozwiń tego wystąpienie.

  2. Rozwiń węzeł Agenta programu SQL Server, expand Zadania, kliknij prawym przyciskiem myszy zadanie, które chcesz edytować, a następnie kliknij przycisk Właściwości.

  3. Wybierz Powiadomienia strona.

  4. Sprawdź Automatyczne usuwanie zadanie, a następnie wybierz jedną z następujących czynności:

    • ClickWhen the job succeedsto delete the job status when it has completed successfully.

    • ClickWhen the job failsto delete the job when it has completed unsuccessfully.

    • ClickWhen the job completes to delete the job regardless of completion status.

See Also

Concepts