quote:
Originally posted by gkrishn
MonitorUserActivity procedure is running automatically after startup.Thsi wil call other procedure each 10 seconds. This methord they are using for 2 years.But problem occuring only for last 4 days.
I traced profiler. Error is reporting when MonitorUserActivity procedure is executing.Can anyone analyse this Procedure?
Seems like you could use some training in debugging ...
The MonitorUserActivity procedure is calling the RefreshUserActivity procedure every 10 seconds, and you are getting an error every 10 seconds. So if you have really given us the full script of the MonitorUserActivity procedure, which doesn't have anything remotely arithmetic to speak of, then it is obvious that the error is occurring in the RefreshUserActivity procedure, or in any procedure that is being called from the RefreshUserActivity procedure.
Furthermore, you are not necessarily seeing the full error details. You should get the same error if you executed
EXEC RefreshUserActivity directly in QA, and you might see some additional info on the Messages tab. Note that you could even get some info on the Messages tab with no error on the Results tab, meaning that the error was insignificant.
You could also run this script:
DECLARE @CNT INT
SET @CNT = 1
WHILE @CNT < 100
BEGIN
WAITFOR DELAY '00:00:10'
EXEC RefreshUserActivity
SET @CNT = @CNT + 1
END
This mimics the MonitorUserActivity procedure, except that it runs 100 times and then stops. If there are no errors on the Messages tab, try increasing the number of iterations (WHILE @CNT <
200, etc.) and see what happens.