Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Karthik,
Yes, you can do this by ticking "Enable debug mode" in the Advanced Settings of your tMSSqlOutput component, then sending the Main output to a tFlowToIterate, at which point you'll have access to the query executed in a global variable named similar to "tMSSqlOuput_1_QUERY".
Here's an example which logs the query to the console in a tJava component:
The code in tJava_1 is just:
System.out.println(((String)globalMap.get("tMSSqlOutput_1_QUERY")));
Regards,
Chris
Hi Karthik,
Yes, you can do this by ticking "Enable debug mode" in the Advanced Settings of your tMSSqlOutput component, then sending the Main output to a tFlowToIterate, at which point you'll have access to the query executed in a global variable named similar to "tMSSqlOuput_1_QUERY".
Here's an example which logs the query to the console in a tJava component:
The code in tJava_1 is just:
System.out.println(((String)globalMap.get("tMSSqlOutput_1_QUERY")));
Regards,
Chris