Massive disk contention while this is running with disk queue lengths in the teens to 25. SQL Server Agent runs under its own account, TracSuiteSQLAgent. Unfortunately, I cannot move LocalAppData.
A periodic SQL Server Agent job runs a local DTSX file to pull newest data from another local system (Native OLE DB\SQL Server Native Client 11.0) and seems to generate the same number of zero length files as are returned from the first query.
Source Query: SELECT [ID],[ClientLabelType],[LabelName],[Usage],[LabelSerialNumber],[LabelXML],[LabelLotcode]
FROM [appDB].[dbo].[tblLabelInfo] where ClientLabelType like 'scale%' and LabelSerialNumber like '%MWT%' and substring(LabelLotcode,1,4)>'2018'
LabelLotcode is an index. Against a local table lookup (no cache, redirect rows with no matching entries to output):select * from (select * from [dbo].[tblLabelInfo]) [refTable]
where [refTable].[ClientLabelType] = ? and [refTable].[LabelName] = ? and [refTable].[Usage] = ? and [refTable].[LabelSerialNumber] = ? and [refTable].[LabelLotcode] = ?
Usually less than 2 are found as this job runs every minute during business hours.
Output to local table with data access mode set to table or view.
File names are of the form:
C:\Users\TracSuiteSQLAgent\AppData\Local\Temp\DTB{1464E310-B61F-40DE-A415-61DC24F8BD97}.tmp
Any suggestions about reducing the local I/O contention? Why are these files being created?
Regards and thanks, Ira
Ira Grollman