![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have written a SQL server Agent job that deletes some rows in a table that meets our criteria. It works perfect. But I have a question, is there any way that after the job it tells me that it has deleted so many number of rows? my sql statement is delete from xxxtable where datediff(hh,timegen, getdate()-1)<=24 so now I need the output log to be job started successful at xxxx time and 1000 rows deleted Thanks in advance. |
#3
| |||
| |||
|
|
Hi, I have written a SQL server Agent job that deletes some rows in a table that meets our criteria. It works perfect. But I have a question, is there any way that after the job it tells me that it has deleted so many number of rows? my sql statement is delete from xxxtable where datediff(hh,timegen, getdate()-1)<=24 so now I need the output log to be job started successful at xxxx time and 1000 rows deleted Thanks in advance. |
![]() |
| Thread Tools | |
| Display Modes | |
| |