1 of 1 people found this helpful
Not nessesarily from a SQL query.....
If your running ePO on the full version of MSSQL (not the express edition) then this link might help
Basically it's done as a job within the SQL Server Management Studio
Very useful link..Right I was able to run automate task by using SQL agent job.