Is it possible to get the SQL that would be generated, without running the mapping?

9.8k Views Asked by At

We can see the SQL's generated by PowerCenter in the session log file once a mapping has been run. So to get these SQLs we have to run the mapping. I would like to know if there is any way to get the SQL that PowerCenter would generate without actually running the mapping, so that we can analyse it, fix it or apply relevant database indexes etc. in case of any issues.

If this is possible then please tell me how.

3

There are 3 best solutions below

4
On

I think that is not possible in Informatica PowerCenter.

0
On

Run the mapping in test mode. In test mode, no data is inserted/updated in target tables. But you will still get the SQL queries from session log.

To enable test mode, go to the properties tab of the session and check the "Enable Test Load" option. You can leave the "Number of rows to test" value to 1 (default).

4
On

You can edit the Source Qualifier, go to Properties tab and edit the SQL Query property. There you can see the Generate SQL button that will create the SQL statement. This also works for lookups where you can find the Lookup Sql Override property. Please note that this will not include the source filter (for Lookup).