Cleaning Emptying Purging a Database
Bagheera
Member Posts: 57
Hello all,
We have a Navision 3.7 Database ready to go live at a Customer. All tests are successful all functionality is implemented all setup has been done. During the tests both at our company and at the client's site (using real data) have generated documents, posted invoices, ledger entries and so on.
Most functional areas are uses that is Sales / Purchases / Inventory / CRM / Services etc.
We need to delete all data so every customer, every vendor and every item are 0 balance / quantity etc BUT we NEED to keep all CRM and all Service data. We also use dimensions.
Is there any obvious way to do this? Will this require manual purging of some tables? If that is the case which are these tables? (I know the main ones like ledger entry tables but I am sure there are plenty of other tables populated with data - such as BOM tables, LOT and SN tables etc).
Can anyone please indicate what is the proper way to deal with this issue?
Best regards, and thank you all in advance for your valuable support and sharing of opinions.
We have a Navision 3.7 Database ready to go live at a Customer. All tests are successful all functionality is implemented all setup has been done. During the tests both at our company and at the client's site (using real data) have generated documents, posted invoices, ledger entries and so on.
Most functional areas are uses that is Sales / Purchases / Inventory / CRM / Services etc.
We need to delete all data so every customer, every vendor and every item are 0 balance / quantity etc BUT we NEED to keep all CRM and all Service data. We also use dimensions.
Is there any obvious way to do this? Will this require manual purging of some tables? If that is the case which are these tables? (I know the main ones like ledger entry tables but I am sure there are plenty of other tables populated with data - such as BOM tables, LOT and SN tables etc).
Can anyone please indicate what is the proper way to deal with this issue?
Best regards, and thank you all in advance for your valuable support and sharing of opinions.

0
Comments
-
Hi,
IMHO the proper way is to keep a clean company and a test company and synchronize the setup.
Now that you haven't a clean database, deleting records from the posting tables is a mistake.
I have used:
http://www.mibuso.com/dlinfo.asp?FileID=275
in the past and with caution it works fine...0 -
Or you can look into 4.01 and check codeunit 8604. It is new function for cleaning database from transactions (it is used in Setup Checklist in new function Implementation).0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

