我的SSRS服务器每天早上为大约500个报告生成缓存快照。我注意到其中一些由于锁定而没有完成并超时。
在进行投资时,ReportServer.dbo.GetTaskProperties查询显示出很多锁定。我该如何解决?
SELECT S.[ScheduleID],
S.[Name],
S.[StartDate],
S.[Flags],
S.[NextRunTime],
S.[LastRunTime],
S.[EndDate],
S.[RecurrenceType],
S.[MinutesInterval],
S.[DaysInterval],
S.[WeeksInterval],
S.[DaysOfWeek],
S.[DaysOfMonth],
S.[Month],
S.[MonthlyWeek],
S.[State],
S.[LastRunStatus],
S.[ScheduledRunTimeout],
S.[EventType],
S.[EventData],
S.[Type],
S.[Path],
SUSER_SNAME(Owner.[Sid]),
Owner.[UserName],
Owner.[AuthType]
FROM [Schedule] S
WITH
(
XLOCK
)
INNER JOIN [Users] Owner
ON S.[CreatedById] = Owner.UserID
WHERE S.[ScheduleID] = @ScheduleID