Script to clean up a database?
JTPro
Member Posts: 169
Hello all,
My employer wants me to write a script that will clean up whole database. They have already posted a lot of documents and made a lot of modification. They want to keep all setting and modifications, but delete all posted documents. Is it possible? Maybe someone has already written such script.
Need your help.
Best regards
JTPro
My employer wants me to write a script that will clean up whole database. They have already posted a lot of documents and made a lot of modification. They want to keep all setting and modifications, but delete all posted documents. Is it possible? Maybe someone has already written such script.
Need your help.
Best regards
JTPro
Navision Application Version: 4.0SP1
Navision Database Version: 4.0
Navision Database Version: 4.0
0
Comments
-
Is that legal in Poland? Can you just delete all posted information from your financial system?
Or are you talking about cleaning up a test system?0 -
standard navision has such thing it's If you go to setupchecklist. |THen click on Function->Implementation. On data cleaning tab you'll a button for clean. This wil clean al the transaction data. Afterwards check the table that still have records. File->database->info->tables. Find the ones that have still records and write a report to delete those.0
-
Or you can use use the Date Compression function in Navision.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
If you realy want to clear all Tables, take a look undet File \ Database \ Information \ Tables here you can see all tables with entries. Now you can write an report which delete all Records in that tables you are must clear.
if you will not add evry table as variable use recref.Do you make it right, it works too!0 -
Hi,
You need to carefuly analyze which tables to clean up. Because ussually we don't want to delete setups and data which could be reused (customer, vendor cards e.c.)
You can use Function from Setupchecklist, but be careful, this function have some issues. Some tables still have transactions data. If I remember correctly one of these tables are bank accounts ledger entries.
Our company write special code unit for cleaning purposes. It is very useful after user trainings to delete transaction information, but still have all setupsAndrejs Muraskins0 -
JTPro,
this is why I written this:
http://mibuso.com/dlinfo.asp?FileID=580
With this tool you gotta look at each table, press Ctrl+L and decide whether it should be deleted or not.
It's about 2 hours (I tested it). But at least in this two hours you will get a profoung knowledge of Navi table structure
0 -
Thanks a lot guys.
Im really apprieciate.
The database is a test one, so there is no stress.
Best regards
JTProNavision Application Version: 4.0SP1
Navision Database Version: 4.00
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

