<?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>Deleting data from database</title><link>https://community.appian.com/discussions/f/data/11490/deleting-data-from-database</link><description>If I want to delete data from database. Is there anyother way expect Delete from Data Store Entity?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/52150?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 07:45:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2591a528-5260-4f15-a391-894cd1fd9a28</guid><dc:creator>chandu</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
I Saw all the above options, those are pretty good. Still I believe the best practice would be having a coulumn active or inactive in DB. In this way we can avoid hard deleting the data from DB. But still some use cases will be there to Delete the data. If there is a possibility just create DB model with active and inactive indicators.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/52141?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 05:40:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7a8c8d2-798f-45c6-bf84-15a409371485</guid><dc:creator>smriti p0001</dc:creator><description>yes this approach worked for me as well&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/51727?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 21:45:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49bb8356-9c4d-4123-923a-4f3ff820a7c5</guid><dc:creator>jayakumars</dc:creator><description>This is a good alternative solution that I also agree with.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50789?ContentTypeID=1</link><pubDate>Sun, 10 Dec 2017 08:28:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:636d98f8-a4b9-4a26-bfb7-4177fdaa2a07</guid><dc:creator>Smruti Swain</dc:creator><description>Hi Balaganapathy,&lt;br /&gt;
I would suggest to consider execute stored procedure smart service if you are looking for an alternate solution to delete data data from database. By doing that you could also design the SP in such a way to return some control information like number of records gets deleted and the keys for that matter.&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50781?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2017 23:09:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89c2d6e8-1d9d-4d27-a222-56db0bf49b5c</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/balaganapatyr"&gt;balaganapathy&lt;/a&gt;  you have an another way to do this as well,&lt;br /&gt;
&lt;br /&gt;
You can write a stored procedure which will have an IN parameter to accept input from Appian, this procedure should perform your required operations.&lt;br /&gt;
&lt;br /&gt;
Now you can use Appian smart service or smart service function to invoke this procedure by passing it&amp;#39;s parameter.&lt;br /&gt;
&lt;br /&gt;
I recommend this approach compared to Query Database Smart Service because in case of Query Database Smart Service we are going to use Native SQL queries in Appian process level, which differs from vendor to vendor. And a minor change in column name can cause you to edit the process or Appian object such as constant.&lt;br /&gt;
&lt;br /&gt;
But when we are using stored procedure, it means any changes in db, will cause you change your procedure in SQL side to avoid any object modification in Appian.&lt;br /&gt;
&lt;br /&gt;
The another benefit of going with procedure could be, When we use stored procedure and not expecting any output from it, in such case Appian will deliver the request to db and rest of all will be taken care by db hence node will proceed further without making any delay, this will help you when you want to act upon thousands or lakhs of rows in a single transaction. And in fact if you want to halt the node till it&amp;#39;s completion then in such case return an output from procedure and capture the same in Appian. But in case of query database smart service, your node will wait till it completes all its query specified with in it.&lt;br /&gt;
&lt;br /&gt;
However not to forget, both of these approaches are like integration touch point.&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: Deleting data from database</title><link>https://community.appian.com/thread/50768?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2017 16:37:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0947190e-9125-4e68-a930-af7186e3f76a</guid><dc:creator>aswinb608</dc:creator><description>You can use Query Database Node to delete data...if it is a oracle database...make sure you bump the sequence for that table...otherwise write to db nodes for that table won&amp;#39;t work in future...same thing goes with insert statements...use table_sequence_sql.NEXTVAL to inside Query database node to insert new row&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50643?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 01:01:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d265e5f-879e-4193-96ed-9f6e18156cfe</guid><dc:creator>rajatk</dc:creator><description>you can use smart services for the same, but you should have administrative rights for the same.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50642?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 00:53:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92f660e0-f904-4487-b24e-7824cc4415b7</guid><dc:creator>balaganapathy</dc:creator><description>Thank you amit&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50607?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 11:45:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:918f3e84-0795-4555-bbe2-c2d0d6ee89c9</guid><dc:creator>lokeshk</dc:creator><description>Yes Amit, i totally agree with you.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50605?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 08:27:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6404501d-1254-4d6c-a9c1-688ee431e904</guid><dc:creator>Amit Mishra</dc:creator><description>Yes, as ramanjaneyulut referred. You can use &amp;quot;Query Database&amp;quot; smart service where you need to establish the DB connection and then you can add no. of DB queries (SQL statements) to run.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50603?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 07:58:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3e13d3a-1eda-4d95-980e-241e842f45db</guid><dc:creator>balaganapathy</dc:creator><description>sure. Thanks for quick response&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting data from database</title><link>https://community.appian.com/thread/50602?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 07:56:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89c09fbc-a9c6-4bb6-950e-0dfca32cee6c</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;p&gt;&lt;a href="/members/balaganapatyr"&gt;balaganapathy&lt;/a&gt;&amp;nbsp;Have a look at&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/17.4/Query_Database_Smart_Service.html"&gt;Query_Database_Smart_Service&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>