Источник:
http://dynamicsaxgyan.wordpress.com/...amics-ax-2012/
==============
Friends, To get the underlying SQL query or statement from the X++ query, use getSQLStatement method. getSQLStatement is a new method that has been introduced in tables in AX 2012. The X++ select has been extended with the generateonly command that instructs the underlying data access framework to generate the SQL query without actually executing [...]
Источник:
http://dynamicsaxgyan.wordpress.com/...amics-ax-2012/