Quantcast
Channel: Symantec Connect - Client Management Suite - Discussions
Viewing all articles
Browse latest Browse all 2021

GetDate not working

$
0
0
I need a solution

Ok so in CMS 7.6, I have created a report that works pretty well.

Tried putting it into 8.5 and i have narrowed down that 8.5 does not like the variable i have for the days...

thoughts?

Select DISTINCT b.[Name] as 'Machine Name', a.AdvertisementName, a.[ReturnCode],       
Case       
    when a.[AdvertisementName] like '%Uninstall%' then 'Uninstall'     
    when a.[AdvertisementName] like '%Install%' then 'Install'     
      when a.[AdvertisementName] like '%Upgrade%' then 'Upgrade'     
    when a.[AdvertisementName] like '%OSPatch%' then 'Patch'     
        when a.[AdvertisementName] like '%Pilot%' then 'Distribution Pilot'     
        when a.[AdvertisementName] like '%Phase%' then 'Distribution Phase'     
    Else 'Install'     
end as Type,  
Case       
    when a.[ReturnCode] in('0','3010') then 'Success' 
    Else 'Verify' 
    end as Status,      
    a.[Start], a.[End], b.[_ResourceGUID]      
From [Evt_Aex_SWD_Execution] a inner join      
[Inv_Aex_AC_Identification] b on a.[_ResourceGUID] = b.[_ResourceGUID]
Where datediff(dd,a.[end],getdate()) <= %NumDays% 
Order by a.[End] DESC

but if i put the days in vs the variable..

<= 3 

it works fine... what is weird is this all works in 7.6 but 8.5 wont take it.

0

Viewing all articles
Browse latest Browse all 2021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>