Skip to main content
Solved

Dynamic SQLExecutor


Forum|alt.badge.img+1

Hi,

 

I want to create a dynamic workspace. I have an excel file and I want to execute everything from there. I want to send database information for sqlexecutor via excel. but I couldn't find how to add format and dataset information. Is such a thing possible?

 

image.png image.png

Best answer by redgeographics

ssisman06 wrote:

Thank you,

 

Is it possible to dynamically print attribute information from sql? Can I fill the "Attiributes to Expose" part dynamically without sending it from excel?

 

image 

You can populate that field based on the SQL query (by going in to the [...]), but I don't think you can make that happen automatically.

 

However, that's just for exposing attributes so they're visible to transformers, if you don't do that the attributes will still be there in FME. It's just that transformers don't know about them. If all you want to do is write out the data straight away that should be enough.

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

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+48

You'll need to either create a database connection or embed the connection parameters for the database(s) you want to connect to.

 

The database format is the one thing you can't get out of an attribute, but once you have selected that you can use attribute values for the other details. Embedding connection parameters is handled via the Parameters button that becomes available when a database format is selected.


Forum|alt.badge.img+1
  • Author
  • December 2, 2021
redgeographics wrote:

You'll need to either create a database connection or embed the connection parameters for the database(s) you want to connect to.

 

The database format is the one thing you can't get out of an attribute, but once you have selected that you can use attribute values for the other details. Embedding connection parameters is handled via the Parameters button that becomes available when a database format is selected.

Thank you,

 

Is it possible to dynamically print attribute information from sql? Can I fill the "Attiributes to Expose" part dynamically without sending it from excel?

 

image 


redgeographics
Celebrity
Forum|alt.badge.img+48
  • Celebrity
  • Best Answer
  • December 2, 2021
ssisman06 wrote:

Thank you,

 

Is it possible to dynamically print attribute information from sql? Can I fill the "Attiributes to Expose" part dynamically without sending it from excel?

 

image 

You can populate that field based on the SQL query (by going in to the [...]), but I don't think you can make that happen automatically.

 

However, that's just for exposing attributes so they're visible to transformers, if you don't do that the attributes will still be there in FME. It's just that transformers don't know about them. If all you want to do is write out the data straight away that should be enough.


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