# Disabling indexes in X++

**URL:** <https://www.dynamicsuser.net/t/disabling-indexes-in-x/15071>\
**Category:** Developer Forum\
**Created:** [March 24, 2004, 1:07pm UTC](https://www.dynamicsuser.net/t/disabling-indexes-in-x/15071 "2004-03-24T13:07:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunax](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sunax](https://www.dynamicsuser.net/u/sunax)\
**Post date:** [March 24, 2004, 1:07pm UTC](https://www.dynamicsuser.net/t/disabling-indexes-in-x/15071/1 "2004-03-24T13:07:27Z")

</div>

Hi, I want to set all indexes on all Axapta tables to “enabled = No” (turn them off) using X++ code. Is there anyone out there that can maybe help me out here? Thanks!

---

<div class="post-metadata">

**Author:** ![Helmut\_Wimmer](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@Helmut\_Wimmer](https://www.dynamicsuser.net/u/Helmut_Wimmer)\
**Post date:** [March 24, 2004, 1:31pm UTC](https://www.dynamicsuser.net/t/disabling-indexes-in-x/15071/2 "2004-03-24T13:31:36Z")

</div>

Hi You have to go through all tables looping and using DICTTABLE class. Then you can go through the indices of the table. There is a pretty good example in the online help. Enter kerndoc://Classes/DictTable/indexNext in the Axapta Help window and you’ll see it.

---

<div class="post-metadata">

**Author:** ![Harish](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@Harish](https://www.dynamicsuser.net/u/Harish)\
**Post date:** [March 25, 2004, 2:56pm UTC](https://www.dynamicsuser.net/t/disabling-indexes-in-x/15071/3 "2004-03-25T14:56:48Z")

</div>

Hi, I am just curious - is there any specific reason to disable index across all tables in Axapta? Regards, Harish Mohanbabu
