Skip to main content
Solved

Access Database SQL Where Clause [ Parameter/Attribute ]

  • October 5, 2016
  • 3 replies
  • 28 views

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.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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+40
  • 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