Server instance: DynamicsNAV100 Category: Sql ClientSessionId: 00000000-0000-0000-0000-000000000000 ClientActivityId: 00000000-0000-0000-0000-000000000000 ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000 ServerActivityId: 00000000-0000-0000-0000-000000000000 EventTime: 03/16/2018 15:00:07 Message <ii>Threshold Trace Tag. Execution Time = 1259 milliseconds Long Running SQL statement Task ID:9 </ii> ProcessId: 6296 Tag: 000007S ThreadId: 18 CounterInformation:The event is logged every 30 seconds + Execution Time, as stated in the event message.
Comments
Usually the warning contains the query that is running long. Do you have anything like that in the warning? That would be helpful to further analyze what is causes the warning.
You could use the SQL Profiler on the database to check for long running queries too.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I did not know about the configuration option. That should help me to silence the NST in case the cause cannot be found.
I mentioned, that my entries occur regularly (i.e. 30 seconds after after the last he next one begins).
I did not mention
@vaprog Because your warning doesn't contain IDs from the client or server sessions I guess it is caused by queries launched from the NST session self.
Can you make a trace with SQL Profiler and check if any odd query pops up every 30 sec? I did a quick trace on a local NST myself, only micro queries are executed from the idle NST. Nothing worth to mention and certainly nothing close to the 1000ms duration time.
Does your system have limited resources or is it overwhelmed with other tasks? In that case long running queries would occur easier.
Easiest solution is to higher the threshold to 2000ms for example. That way you will still be informed about long running queries without flooding the event viewer application log.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03