http://masteringlync.com/2014/09/16/quick-tip-automating-sql-reporting-reports/

(Source: https://twitter.com/rbrynteson/status/512233082800177152)