• your question may lead confusion as you are usign third party tool to write the query. your TSQL include code inside the TSQL statement.