Announcements
No record found.
Hi i hav a table , if i don't create any index so how can i found which index it wil use and is there any table without indexes
*This post is locked for comments
Hi
If you don;t define an index then the database will scan the entire table every time you access that table. Always define at least one index.
If you want to find all the tables in Ax that have no indexes then you can use the following X++ code...
SQLDictionary dict; DictTable dictTable;
; while select dict where dict.fieldId == 0 // only tablenames { dictTable = new DictTable(dict.tabId); if ( dictTable.indexCnt() == 0 && ! dictTable.isView() ) { info(strfmt("Table %1 has no indexes", dictTable.name())); } }
Regards
Malcolm Burtt
HSO ES Limited
I think for AX2012, the recid index is always created by default.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Sagar Suman 2 Super User 2026 Season 1
Alexey Lekanov 2