This query will only display the policies that were created for the configured month. It does not display all of the policies used in a specific month.
Select c.computer_name, a.profile_serial_no
From
Sem5.sem_computer c,
Sem5.sem_agent.a
Where
a.computer_id = c.computer_id AND
a.profile_serial_no like ‘%-02/%’ --numerical month
--order by a.last_update_time
------------------------------
For SQL 2005 -
Select
c.computer_name, a.profile_serial_no
from
sem5.sem_computer c, sem5.sem_agent a
where
a.computer_id = c.computer_id AND
dbo.RegExMatch(
'\w{4}\-02/[0-9]{2}/2009\x20\d{2}:\d{2}:\d{2}\x20\d{3}',
profile_serial_no
) = 1
--order by a.last_update_time
I hope this helps,
Thomas