<?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>Hi all,  Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/discussions/f/general/5748/hi-all-is-there-any-smart-service-functions-we-could-use-to-execut</link><description>Hi all, Is there any smart service / functions we could use to execute SQL ? Not just &amp;#39;SELECT&amp;#39; but also &amp;#39;INSERT&amp;#39; / &amp;#39;UPDATE&amp;#39; ? One of the solution might be: Create a store procedure which is &amp;quot;execute &amp;lt;Input parameter&amp;gt;&amp;quot; , &amp;lt;input parameter&amp;gt; is input of the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi all,  Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/69518?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 10:41:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1ea3ae6-c37b-45be-b87c-4be20af54f87</guid><dc:creator>Rahul Zanwar</dc:creator><description>&lt;p&gt;Hi Vinay,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My requirement is different. I have list of UPDATE statements in PV and the number of statements is not defined.&lt;/p&gt;
&lt;p&gt;For example:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UPDATE &lt;strong&gt;TableName&lt;/strong&gt; SET columnName = &amp;#39;value2&amp;#39; WHERE columnNAme = &amp;#39;value1&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UPDATE &lt;strong&gt;TableName&lt;/strong&gt; SET columnName = &amp;#39;value4&amp;#39; WHERE columnNAme = &amp;#39;value3&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UPDATE &lt;strong&gt;TableName2&lt;/strong&gt; SET columnName = &amp;#39;value4&amp;#39; WHERE columnNAme = &amp;#39;value3&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have created a AC in setup tab of Query Database and configure it with the PV, but it is not working.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,  Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/69483?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 12:22:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:944a6390-0c66-4836-8787-aa459e683bb9</guid><dc:creator>vinayp0002</dc:creator><description>&lt;p&gt;Hi Rahul,&lt;/p&gt;
&lt;p&gt;As I understand you need to execute multiple update statements&amp;nbsp;&lt;/p&gt;
&lt;p&gt;on a single table - write the query in the setup tab of the smart service (Query database) and give custom AC variable (ac!id ) which should be same as the column used as a filter. Then you can provide&amp;nbsp;PV variable for that particular ac created in inputs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,  Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/69481?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 11:05:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5363d6e-c758-4658-b2ad-3dc174aec610</guid><dc:creator>Rahul Zanwar</dc:creator><description>&lt;p&gt;Hello Alvinc&lt;/p&gt;
&lt;p&gt;Had you able to achieve this functionality? I am also working on similar POC where I need to execute multiple UPDATE statements on tables. I have the script in a process variable. While passing that variable to query database node, it is breaking.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if you have achieved this.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Rahul Zanwar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21961?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2015 05:20:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60597cc0-14b7-439c-9d16-54fddbb6a733</guid><dc:creator>alvinc</dc:creator><description>Understood.&lt;br /&gt;We will study the security issues and may have manual control on this aspect. We are having POC to see whether this approach could be achieve. &lt;br /&gt;&lt;br /&gt;Thanks philb.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21916?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 11:21:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9437b5b1-9aab-427c-8bfb-df6e8f045c78</guid><dc:creator>PhilB</dc:creator><description>Why are you unable to map a CDT? The approach you suggest has many security issues - any user could issue commands like drop schema or truncate table - and would appear to me to be a terrible user experience.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21914?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 11:18:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e50a458-0299-45f7-8cbd-0a06ffd40a95</guid><dc:creator>alvinc</dc:creator><description>yes, it&amp;#39;s unable to map a CDT. &lt;br /&gt;We are not going to execute some predefined SQL. My idea is:&lt;br /&gt;1. Have a sail form to let user paste the sql &lt;br /&gt;2. Approver review the case and pass to operator.&lt;br /&gt;3, Operator simple click a button to execute the sql.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21912?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 11:13:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd40a732-fc54-4e1b-aadf-9dce28292b40</guid><dc:creator>PhilB</dc:creator><description>Does this mean you&amp;#39;re unable to map a CDT to the table and use the write to datastore node as would be usual? If so, have you considered the use of stored procedures and the related smart service?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21911?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2015 05:15:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b29c1a81-2d60-4902-b0a8-316dbb6cd7c1</guid><dc:creator>alvinc</dc:creator><description>Hi philb, &lt;br /&gt;In particular siutation, we have to execute sql script to update DB data. We are looking a way if all the task can be completed within appian&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21876?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 11:12:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c975f6f2-d576-4bce-ac00-ef2302b2d670</guid><dc:creator>PhilB</dc:creator><description>It sounds like you&amp;#39;re trying to implement permissioning on tables by sending flat SQL; what&amp;#39;s the use case for this?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21873?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 10:35:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f93d140-0eba-46f4-9aca-d5985f932f90</guid><dc:creator>alvinc</dc:creator><description>Thanks for your quick respone. &lt;br /&gt;I&amp;#39;ve tried this node, .&lt;br /&gt;My idea is : &lt;br /&gt;1. Create a UI to allow user key in the script =&amp;gt; and save this script into pv!a. &lt;br /&gt;2. In smart node - Query database, use ac!a (value = pv!a) as sql statement.&lt;br /&gt;&lt;br /&gt;But failed. &lt;br /&gt;Besides, number of update statement is not fixed, using Query database smartservice node seems not flexible. &lt;br /&gt;&lt;br /&gt;Thank&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi all,&lt;br /&gt;&lt;br /&gt;Is there any smart service / functions we could use to execut</title><link>https://community.appian.com/thread/21872?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2015 10:30:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9db647f9-12ab-4358-8382-f69c0728c478</guid><dc:creator>chandhinir</dc:creator><description>Query database smartservice node can be used to write your queries.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>