Skip to main content
Solved

Get SQL Statements from SQLExecutor Transformer


Is there a way to easily pull all of the SQL statements out of all of the SQLExecutors in a workspace? I have several automations that I need to do this for and some of them have hundreds of SQLExecutors in them.

Best answer by david_r

Yes, it's possible, you can use the FMW reader and look for the SQLExecutor transformers:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/fmw/fmw.htm

View original
Did this help you find an answer to your question?

3 replies

david_r
Celebrity
  • Best Answer
  • June 9, 2023

Yes, it's possible, you can use the FMW reader and look for the SQLExecutor transformers:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/fmw/fmw.htm


  • Author
  • June 9, 2023
david_r wrote:

Yes, it's possible, you can use the FMW reader and look for the SQLExecutor transformers:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/fmw/fmw.htm

This is a good first step! How would I add in a field that provides the SQL statements from the transformer? Out of the box, it keeps it generic to all transformers so all it provides is name, type, id, and some version and other misc. info.


  • Author
  • June 9, 2023
david_r wrote:

Yes, it's possible, you can use the FMW reader and look for the SQLExecutor transformers:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/fmw/fmw.htm

Ah, nevermind. I found it under the TransformerParameters feature type.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings