→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JTolivar_GS
Engaged Sweeper
Replace 'lansweeperurl' with your server for success.

Select Top 1000000 'http://lansweeperurl/Ticket.aspx?tid=' +
Cast(htblticket.ticketid As varchar) As hyperlink_Subject,
htblticket.subject As hyperlink_name_Subject,
htblticket.date As [Date Opened],
htbltickettypes.typename As [Ticket Category],
htblticketstates.statename As [Ticket State],
htblusers.name As [User],
tblAssets.AssetName As Asset,
htblusers1.name As Agent
From htblticket
Left Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Left Join htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Left Join htblusers On htblusers.userid = htblticket.fromuserid
Left Join htblagents On htblagents.agentid = htblticket.agentid
Left Join htblusers htblusers1 On htblagents.userid = htblusers1.userid
Left Join tblAssets On htblticket.assetid = tblAssets.AssetID
Where htblticket.date <= DateAdd(DAY, -30, GetDate()) And
htblticketstates.statename != 'Closed'
1 REPLY 1
dconway
Engaged Sweeper II
Cast(htblticket.ticketid As varchar) As hyperlink_Subject,
Line is incorrect
Cast(htblticket.ticketid As nvarchar) As hyperlink_Subject,