web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Check for unsed tables

(0) ShareShare
ReportReport
Posted on by 50

I need to find the unused tables from dataverse.

I tried some solutions, here they are:

With sql server: 

SELECT *
FROM sys.dm_db_index_usage_stats
WHERE [database_id] = DB_ID()
AND [object_id] = OBJECT_ID('TableName')

Couldn't do it because of this error -> Invalid table name dm_db_index_usage_stats for schema sys. Line:2, Position:6

I tried with analytics from admin.powerplatform.com -> Only two months available to select. It would be great if I could select from the environment creation till now, that would solve my problem.

pastedimage1667286921963v1.png

Any suggestion? any tool? any way of achieving it with one of the methods above?

Thanks in advance

I have the same question (0)
  • Suggested answer
    Steve Zhao2 Profile Picture
    on at

    Hi Ricardo Jacobsen,

    You could use Entity Usage tool in the Xrm Toolbox to achieve this. Please refer to this:

    Entity Usage Overview  · XrmToolBox

  • Ricardo Jacobsen Profile Picture
    50 on at

    Steve Zhao2 Thank you, but  this tool only brings the rows count and the number of custom attributes. It does not get the last time the table was read or written for example. This would be the best indicator for the usage of the table.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans