How to Delete NAV Company on SQL Database

den
Member Posts: 7
in SQL General
Hi,
We're using NAV 2018 and we have multiple companies on our database.
We want to delete a certain company including all data on it, we've already deleted it on NAV RTC but when we look on the SQL database all tables and views are still there. Is there a way to delete a company and all of its records in a simple way?.
Thanks in advance.
We're using NAV 2018 and we have multiple companies on our database.
We want to delete a certain company including all data on it, we've already deleted it on NAV RTC but when we look on the SQL database all tables and views are still there. Is there a way to delete a company and all of its records in a simple way?.
Thanks in advance.
0
Answers
-
How did you delete the company under the NAV RTC? I just tried deleting a company in my demo database, it deleted all related tables immediately for me. Perhaps you can try using the development environment to do a Tools > Sync. Schema For All Tables > With Validation to see if it helps?0
-
How did you delete the company under the NAV RTC? I just tried deleting a company in my demo database, it deleted all related tables immediately for me. Perhaps you can try using the development environment to do a Tools > Sync. Schema For All Tables > With Validation to see if it helps?
I go to the Company, select the company then click the Delete button.
I also tried to sync schema for all tables then got a prompt state "operational"
I look again on the SQL database but still, all tables are there
0 -
If it' successful from NAV Side than you don't have to worry from SQL Side.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Did you get any warning or errors when deleting? Make sure the RTC instance you're on is actually connected to the DB you're expecting the tables to be deleted from. Or it could be the other way around, where you're checking the wrong DB. I suggest creating a demo DB and then deleting the company and checking to see if this drops the tables you're expecting to be dropped. If it does and you did the same steps, then, at least you know you did it the correct way!0
-
Hi Guys,
As per checking again today on the database, all tables are now deleted.
Not sure if sync. schema do the work or it just really took a long time before it will be deleted. But anyway thank you for your help.0 -
Hello,
Do you want to delete NAV Company on SQL Database, then please go through this link:
https://docs.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.management/remove-navcompany?view=businesscentral-ps-16
Thanks & Regards,
Anita
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K 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
- 320 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