﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Interprise Suite Community / Interprise Suite Community Forums / Questions and Comments About Features, Functions and Workarounds  / Deleting all data in the Database / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Interprise Suite Community</description><link>http://www.interprisesuitecommunity.com/</link><webMaster>forums@dimesoftinc.com</webMaster><lastBuildDate>Fri, 10 Feb 2012 18:09:02 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Deleting all data in the Database</title><link>http://www.interprisesuitecommunity.com/Topic242-3-1.aspx</link><description>I had a need to clear our database of all the data except the customer records that we had accumulated.  This is the script I used.  I don't claim anything about this to be safe.  USE AT YOUR OWN RISK.  But at least maybe it will get you started.&lt;br&gt;&lt;br&gt;&lt;br&gt;Update AccountingCOA Set CurrentBalanceAmount = 0&lt;br&gt;&lt;br&gt;Delete From AccountingDailyBalance&lt;br&gt;&lt;br&gt;Delete From AccountingJournalDetail&lt;br&gt;&lt;br&gt;Delete From AccountingJournal&lt;br&gt;&lt;br&gt;Delete From AccountingJournalAccountHistory&lt;br&gt;&lt;br&gt;Delete From AuditTrail&lt;br&gt;&lt;br&gt;Delete From BankDailyAnalysis&lt;br&gt;&lt;br&gt;Update BankingAccount Set Balance = 0&lt;br&gt;&lt;br&gt;Delete From BankingDeposit&lt;br&gt;&lt;br&gt;Delete From BankingDepositDetail&lt;br&gt;&lt;br&gt;Delete From BankingWriteCheck&lt;br&gt;&lt;br&gt;Delete From BankingWriteCheckDetail&lt;br&gt;&lt;br&gt;Delete From BankMonthlyAnalysis&lt;br&gt;&lt;br&gt;Delete From CacheTablesDeleteLog&lt;br&gt;&lt;br&gt;--Delete &lt;selected&gt; From Customer&lt;br&gt;--Delete &lt;selected&gt; From CustomerAccount&lt;br&gt;&lt;br&gt;Delete From CustomerAllocation&lt;br&gt;&lt;br&gt;Delete From CustomerAllocationCredit&lt;br&gt;&lt;br&gt;Delete From CustomerAllocationDebit&lt;br&gt;&lt;br&gt;Delete From CustomerCardPayment&lt;br&gt;&lt;br&gt;Delete From CustomerCCAuthResponse&lt;br&gt;&lt;br&gt;Delete From CustomerCredit&lt;br&gt;&lt;br&gt;Delete From CustomerDailyAnalysis&lt;br&gt;&lt;br&gt;Delete From CustomerInvoice&lt;br&gt;&lt;br&gt;Delete From CustomerInvoiceDetail&lt;br&gt;&lt;br&gt;Delete From CustomerItems&lt;br&gt;&lt;br&gt;Delete From CustomerMonthlyAnalysis&lt;br&gt;&lt;br&gt;--Delete From CustomerPayment&lt;br&gt;&lt;br&gt;Delete From CustomerPaymentDetail&lt;br&gt;&lt;br&gt;Delete From CustomerSalesOrder&lt;br&gt;&lt;br&gt;Delete From CustomerSalesOrderDetail&lt;br&gt;&lt;br&gt;Delete From CustomerSalesOrderWorkflow&lt;br&gt;&lt;br&gt;Delete From CustomerSalesRepCommission&lt;br&gt;&lt;br&gt;Delete From CustomerSalesRepCommissionBatch&lt;br&gt;&lt;br&gt;Delete From CustomerSalesRepCommissionBatchDetail&lt;br&gt;&lt;br&gt;Delete From CustomerSalesRepCommissionBatchDetailInvoices&lt;br&gt;&lt;br&gt;Delete From CustomerServiceContract&lt;br&gt;&lt;br&gt;Delete From CustomerServiceContractDetail&lt;br&gt;&lt;br&gt;Delete From CustomerTransactionReceipt&lt;br&gt;&lt;br&gt;Delete From JournalReference&lt;br&gt;&lt;br&gt;Delete From PaymentMethod&lt;br&gt;&lt;br&gt;Delete From CustomerCreditCard&lt;br&gt;&lt;br&gt;Delete From PostStatus&lt;br&gt;&lt;br&gt;Delete From SupplierBill&lt;br&gt;&lt;br&gt;Delete From SupplierBillDetail&lt;br&gt;&lt;br&gt;Delete From SupplierDailyAnalysis&lt;br&gt;&lt;br&gt;Delete From SupplierMonthlyAnalysis&lt;br&gt;&lt;br&gt;Update SystemStartingNumber Set Number = 0 &lt;br&gt;Update SystemStartingNumber Set Number = 100000 Where TableTransaction = 'Quote'&lt;br&gt;Update SystemStartingNumber Set Number = 500000 Where TableTransaction = 'SalesOrder'&lt;br&gt;&lt;br&gt;Delete From TransactionItemSummaries&lt;br&gt;&lt;br&gt;Delete From TransactionSummaries&lt;br&gt;&lt;br&gt;Delete From TransactionItemTaxDetail&lt;br&gt;&lt;br&gt;Delete From TransactionSummaries&lt;br&gt;&lt;br&gt;Delete From TransactionTaxDetail&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 31 Aug 2009 13:22:57 GMT</pubDate><dc:creator>Greg Sergeant</dc:creator></item><item><title>Deleting all data in the Database</title><link>http://www.interprisesuitecommunity.com/Topic242-3-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I was just wondering if anyone had the proper SQL code to wipe all data out of the database?&lt;/P&gt;&lt;P&gt;After doing a recent import of products I now need to wipe all data...everything from the database.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Christian</description><pubDate>Fri, 14 Aug 2009 13:35:21 GMT</pubDate><dc:creator>Christian Byrne</dc:creator></item></channel></rss>
