MyITGuy
7/7/2015 - 10:05 PM

SQL: Altiris Deployment Solution 6.9 Running Jobs

SQL: Altiris Deployment Solution 6.9 Running Jobs

SELECT
	[t1].[computer_id]
	, [Deployment Server] = (SELECT TOP 1 UPPER([hostname]) FROM mmsettings)
	, [t1].[name]
	, [JobName] = [t3].[name]
	, [ScheduledBy] = [t4].[netbiosdomain] + '\' + [t4].[name]
	, [StartTime] = [t2].[start_time]
	, [Duration (minutes)] = DATEDIFF(MI, [t2].[start_time], getdate())
FROM
	[computer] [t1]
	left join [event_schedule] [t2] ON [t1].[computer_id] = [t2].[computer_id]
	left join [event] [t3] ON [t2].[event_id] = [t3].[event_id]
	left join [securityuser] [t4] ON [t2].[user_id] = [t4].[user_id]
WHERE status_code = -1