Viewing 2 posts - 1 through 3 (of 3 total)
Actually I'm doing it like this:
insert into ERROR values (GETDATE())
select count(*)
from ERROR
WHERE errorcolumn
BETWEEN dateadd(ss,-30,getdate()) AND GETDATE()
order by error
July 13, 2012 at 6:12 am
#1512490
Thanks for your quick replies.
One question: what is the best way to get the rows inserted in the last 10 seconds for example.
Let's assume that I have a table ERROR...
July 13, 2012 at 5:43 am
#1512475