Best process to delete company

vijay_g
Member Posts: 884
hi,
Is there any difference anyhow to delete a compnay(in both case SQL and Native) from company Talbe
or delete from file---compnay--delete.
Is there any difference anyhow to delete a compnay(in both case SQL and Native) from company Talbe
or delete from file---compnay--delete.
0
Comments
-
I would always go for File -> Company -> Delete. I never heard of deleting a record in the Company table could also be possible. And when you take a look at the OnDelete-Trigger of the Company table there is no code within it. Thus I would think these two things can't be the same."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
i think so, but when i am deleting from company the counter has prompt in proces saying like Deleting Record.....
and also taking time same to delete from file menu.0 -
vijay_g wrote:i think so, but when i am deleting from company the counter has prompt in proces saying like Deleting Record.....
and also taking time same to delete from file menu.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Who'd have thunk? I never tried it but when you say so... amazing!
Why is there a special right (System, 1640) to it, when you are able to do with this workaround? Or do they correspond to each other? If not, I think you have to be careful with the user rights because in many cases users are assigned to a role like SUPER (DATA)."Money is likewise the greatest chance and the greatest scourge of mankind."0 -
einsTeIn.NET wrote:I would always go for File -> Company -> Delete. I never heard of deleting a record in the Company table could also be possible. And when you take a look at the OnDelete-Trigger of the Company table there is no code within it. Thus I would think these two things can't be the same.
I have always deleted and renamed companies from the company table in object designer. It started the first time I used Financials, and I never actually knew about the menu option till many years later I was at a client and we did some testing in a Cronus company the client then renamed using the menu option, and also showed me the delete option. I don't think there is any difference, but if anyone knows different it would be interesting to know.David Singleton0 -
I would discourage the deletion of companies directly through the Company Table. If you do this, you are only challenged by NAV once before it deletes the company - If you do it via File -> Company -> Delete, then NAV challenges you twice.
The following is also worth knowing:
I did know of one client a long time ago who was updating their NAV security in the user roles screen by adding Companies to the Company field of the role but put the wrong company in, but instead of clearing and re-entering, they drilled down and pressed F4 instead... bye bye Company... So back to last night's back up for them...Edward Bloomfield
Lead Consultant
Theta0 -
Deleting Company from File - Company menu is a normal way, it will search for all the data in database related to company what you are going to delete.
But if you delete it directly from Object designer it will just delete information from a particular table but all date will still there in the database.
Regards,
Vijay Mishra0 -
vijay_miss wrote:But if you delete it directly from Object designer it will just delete information from a particular table but all date will still there in the database.
:shock: HUH since when?David Singleton0 -
vijay_miss wrote:Deleting Company from File - Company menu is a normal way, it will search for all the data in database related to company what you are going to delete.
But if you delete it directly from Object designer it will just delete information from a particular table but all date will still there in the database.
Regards,
Vijay Mishra
Then you mean if i delete company from object designer with copying comp name and after that paste(ctrl+v) to same in table then data should not be lost.
i have done it at all but don't able to recover data so how can we get data?0 -
vijay_miss wrote:Deleting Company from File - Company menu is a normal way, it will search for all the data in database related to company what you are going to delete.
But if you delete it directly from Object designer it will just delete information from a particular table but all date will still there in the database.
Regards,
Vijay Mishra
When you delete the record from table "Company", NAV goes through the whole process deleting all objects (and tables and data...).
If you have full recovery model on your SQL DB (and you transactionlog backups are functioning!), you can still get your data back by doing a point-in-time restore.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Yes You are right.
Actually I misunderstand the table name. I thought they are talking about Company Information Table.
I am sorry because I always prefer to delete it through File- Company - Delete.
anyway it is working but I am still not convinced to delete the company directly from the Object Designer if there is a proper way for that.
We can erase so many things directly from database without writing codes etc. but we should always follow proper channel to avoid future problems especially if we are on live database.0 -
vijay_miss wrote:We can erase so many things directly from database without writing codes etc. but we should always follow proper channel to avoid future problems especially if we are on live database.
=D> Yes this is the best attitude to take.David Singleton0 -
vijay_miss wrote:we should always follow proper channel to avoid future problems especially if we are on live database.
Could you explain some proper ways ?
Thanks in advance.hansika0 -
I guess the official way by File -> Company -> Delete is meant.
And I tested my question about user rights. You can deny access to this menu item (System, 1640) but the user is still able delete or rename a company by table access. Same thing for the tables User, Member Of, User Role, Permission,... I guess that means you have to be very careful to whom you can assign a role like SUPER (DATA)."Money is likewise the greatest chance and the greatest scourge of mankind."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