Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

Retrieve underlying SQL Query.

$
0
0

Today I will demonstrate you that how you can retrieve underlying SQL Query in AX.


static void Sqlcodestatement(Args _args)
{
CustTable cust;
select generateonly forceliterals cust where cust.AccountNum=="1102";
info(cust.getSQLStatement());
}

generateonly:- is a keyword which allow you to find the underlying SQL query in X++ query statements.

Viewing all articles
Browse latest Browse all 17314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>