<?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>HOW TO DELETE DATA BASE TABLE</title><link>https://community.appian.com/discussions/f/new-to-appian/26945/how-to-delete-data-base-table</link><description>hii all, 
 we have a requirement of uploading a excel file and once user click preview the entire data in the excel should visible in grid for user , and once clicked on submit then the data should store in database 
 for achieve this we are plane to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: HOW TO DELETE DATA BASE TABLE</title><link>https://community.appian.com/thread/105830?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 13:25:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4fa86ef-3dce-4ae8-80ed-aaab65e9e1be</guid><dc:creator>Praful Singhal</dc:creator><description>&lt;p&gt;&lt;span&gt;Two solution for this problem&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Add&lt;/span&gt;&lt;span&gt;&amp;nbsp;one more column in the staging table i.e. is_processed by default that must be set to 0. When you import a file only pick rows which are having is_processed flag set to 0 and process these rows. If every validation pass put this row in the main table otherwise write in error. Once the write operation is done set the flag to 1 for that particular row.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Write a stored procedure where you read rows from the staging table and if it passes the validations and constraints then write to the main table otherwise write the row into the error table with a proper error message.&amp;nbsp;Processed rows from the staging table can be deleted using the stored procedure by delete row syntax.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;Call execute stored procedure smart service in process model to finish importing from the staging table to the main table.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/io.drawio.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HOW TO DELETE DATA BASE TABLE</title><link>https://community.appian.com/thread/105811?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 09:45:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21f089c4-5cd1-464f-bb77-5cb1b7bc4d51</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Add a Query Database node to your process model and execute the SQL command &amp;quot;TRUNCATE&amp;quot; on that table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>