sql server - How to see the SQL expression of an X++ select statement? -


i have below statement in job in ax:

select recid pjitable      join pid, type, prid sjtable     pjitable.prid == sjtable.prid &&          (sjtable.type == pjtype::timematerial || sjtable.type == pjtype::fixedprice); 

i have use in sql server. how can convert select statement sql , use in sql server management studio?

for debugging purposes can change select query , use getsqlstatement method on table:

select generateonly forceliterals recid pjitable      join pid, type, prid sjtable      pjitable.prid == sjtable.prid  &&          (sjtable.type == pjtype::timematerial || sjtable.type == pjtype::fixedprice);     info(pjitable.getsqlstatement()); 

this show sql statement without executing statement.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -