Forum Discussion
Anonymous
4 years agoNot applicable
Scan dataset M codes.
We want to scan datasets M codes using XMLA endpoint to get information on how tables have been created. We found that we can do this for tables created from Excel, SQL, manual inputs. But the tabl...
bcdobbs
4 years agoCommunity Champion
I think my solution on this post might help:
You need to access the M code from the table partitions:
SELECT *
FROM $SYSTEM.TMSCHEMA_PARTITIONS
smpa01
4 years agoCommunity Champion
bcdobbs This is aweome to say the least !!! Fantastic !!! Thanks for sharing.
- bcdobbs4 years agoCommunity Champion
All sorts of fun available...
Following code gives you list of all those queries:
SELECT * FROM $System.DBSchema_Tables
WHERE TABLE_TYPE = 'SCHEMA'
ORDER BY TABLE_NAME ASCwhich is from Dynamic Management Views (DMVs) in Analysis Services | Microsoft Docs