Skip to main content
Solved

Access Database SQL Where Clause [ Parameter/Attribute ]


cwarren
Forum|alt.badge.img

I'm currently querying a Microsoft Access Database with a WHERE clause that is looking for the value of a user parameter, as I was not able to use the value of an attribute using @Value(attributename). 

First, is it possible an anyway to use the WHERE clause with an attribute value? If not, how do I set a user parameter value from an attribute set in the workspace?



0684Q00000ArBWIQA3.jpg


Best answer by jdh

You cannot use the value of an attribute in a reader. However there are several ways you can read you access database in the workflow without a reader depending on what you want to do. You can use the FeatureReader and set a where clause, you can use a Joiner or a SQLExecuter.

 

 

The FeatureReader is probably the simplest way to go.
View original
Did this help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • October 5, 2016

I guess that using a FeatureReader instead of a plain reader is the solution.


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • October 5, 2016

You cannot use the value of an attribute in a reader. However there are several ways you can read you access database in the workflow without a reader depending on what you want to do. You can use the FeatureReader and set a where clause, you can use a Joiner or a SQLExecuter.

 

 

The FeatureReader is probably the simplest way to go.

ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • October 5, 2016

I query access using where clause and an attribute value but not like@Value(attributename). I just say WHERE Clause: STATUS='Planned'. I'm not sure what way you need to query if it's more complicated I would also use the feature reader


Reply


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