How to: Write the Job Status to the Windows Application Log (SQL Server Management Studio)
This topic describes how to configure Microsoft SQL Server Agent to write job status to the Windows application event log.
Aby napisać stan zadanie w dzienniku aplikacji systemu Windows
In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
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.
Wybierz Powiadomienia strona.
Sprawdź Zapis do dziennika zdarzeń aplikacji systemu Windows, a następnie wybierz jedną z następujących czynności:
ClickWhen the job succeedsto log the job status when the job completes successfully.
ClickWhen the job failsto log the job status when the job completes unsuccessfully.
ClickWhen the job completes to log the job status regardless of completion status.