We are facing severe performance issues on a Microsoft APS / PDW environment. Beside other tasks such as maintaining CCIs and statistics it was suggested to check for orphaned tables.
A search on Google resulted in a query, which should help identifying these table with the DMV sys.dm_db_index_usage_stats
. The idea is to identify all tables, which don't have any index scans since the last reboot, which can be evaluated by sys.dm_os_sys_info
. However, seemingly none of these DMVs is supported on the APS - are there any other possibilities to identify orphaned tables?
Identifying orphaned tables in Microsoft SQL APS / PDW
163 views Asked by Tyron78 At
1
How long is your business cycle?
If you touch most of your tables every batch, I'd use a query like this:
It won't work in the following circumstances:
I'll see if I can get a better (more reliable) answer, but this is the way I've done it in the past.