Hi, not sure we discussed this previously, but shouldn't all Ajax actions respect the ShowSQL directive?
The directive is respected, for example, when searching or grid-editing, but is not respected when creating a table: the CREATE TABLE syntax is not shown even if ShowSQL is true.
See messages 22 and 23 in thread [0].
[0] https://sourceforge.net/projects/phpmyadmin/forums/forum/72909/topic/4015065