<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Can&amp;#39;t add second acp to Query Database node</title><link>https://community.appian.com/discussions/f/general/11549/can-t-add-second-acp-to-query-database-node</link><description>I have a SQL query that&amp;#39;s relatively complicated. It runs directly in Oracle, and the node validates when the values I&amp;#39;m trying to replace with ACPs are hard coded. I can add one ACP before it tells me &amp;quot;SQL command not properly ended&amp;quot;. This is what I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Can't add second acp to Query Database node</title><link>https://community.appian.com/thread/50869?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 19:06:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3bd89e4d-aa22-43db-b26b-bcaaa6c3e22d</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/jessicae400"&gt;jessicae400&lt;/a&gt;  I am completely agree with @Mike ,View will be best option for you in this case.&lt;br /&gt;
&lt;br /&gt;
Also you can make the use stored procedure in such cases where you can write native SQL queries and can execute it from appian rules or process. But stored procedure is specially meant to perform some complex and time taking jobs.&lt;br /&gt;
&lt;br /&gt;
So I prefer going for View as the first option.&lt;br /&gt;
&lt;br /&gt;
Hope this will help you&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't add second acp to Query Database node</title><link>https://community.appian.com/thread/50866?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 17:36:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e6b686f-4321-4594-9a9a-be247c3cd63e</guid><dc:creator>Mike Schmitt</dc:creator><description>Just FYI, I believe Appian best practices for this type of use case (in general) state to create a View, and then use the OOB queryEntity functionality to query on that view.  This offers a lot of flexibility since you can build special things into the queryEntity function.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>