Thoughts on cleaning up old custom reports in prep for v16

Hello All, 

Like many, we are planning ahead with v16. I'm curious what DBA's are doing in preparation for the upgrade with old custom reports. I know when I check, some of our custom reports haven't been used in a while. Like, years. Thinking could save out and archive the old reports before the v16 upgrade for anything that hasn't been run since 2017. But, wondering what others are planning. 

Feel free to share any ideas or thoughts you might have. 

Nathaniel 

Parents Reply
  • Something like this, see what you get, and, if desired, set matching rows in gooesoft_report to inactive = 'Y'.

    select gr.id
    	,gr.name
        ,count(gr.id) as run_count
        ,min(gq.request_date_time) as first_run_dt
        ,max(gq.request_date_time) as last_run_dt
    		into #idle_reports
    from gooesoft_request gq
    join gooesoft_report gr on gr.id = gq.report_id
    where gr.inactive = 'N'
    group by gr.id
    	,gr.name
    having max(gq.request_date_time) < getdate() - 750 -- 25 mos ago
    order by last_run_dt desc

Children