Custom job alert notification

  • I have set up a sampel job which is select count(*) from [SR]

    It will give no of records in table SR as say 120.

    Then I get alert message on netsend with the job run status.

    Is there any way I get the no of records i.e. output of select statement above also in the alert message?

    Regards,

    Spareus

  • DECLARE @countnotification INT

    SELECT @countnotification = COUNT(*)

    FROM [SR]

    PRINT @countnotification

    Change the print part to your netsend command.

    Without more information, cant really comment on whether you need a Count(Distinct *) or other scenarios.

    gsc_dba

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply