changing employees number to new set of numbers
asembereng
Member Posts: 220
Hi,
I am face with assigning new numbers to existing employees numbers. We are using their current numbers as secondary keys but we want the new numbers to be the secondary key now. The current number happens to be the secondary key of so many tables. I want to know the effects of changing the keys on the Navision system. And what possible way can i do this.
Thank you.
I am face with assigning new numbers to existing employees numbers. We are using their current numbers as secondary keys but we want the new numbers to be the secondary key now. The current number happens to be the secondary key of so many tables. I want to know the effects of changing the keys on the Navision system. And what possible way can i do this.
Thank you.
0
Comments
-
The effects of changing the primary key of an existing base table in Navision can be pervasive and very bad (as there could be a lot of code designed to work using the original key). I've seen a customer modify a key on a posted table and it caused havoc in their system. It will also be much more difficult to update & maintain the database when fixes come out.
I would suggest you find a solution other then modifying the primary key.0 -
You're really talking about here is RENAME or do you want to retain the original # somewhere?
Are you thinking about adding a new field "Employee No2" fill it with the new # and add a key for this new field on the table?0 -
Right...I guess the way I read it I thought he meant the key of the table...renaming the key of a record is certainly a lot safer!0
-
Just to Rename it and use the new number as a secondary key. There are so many tables with the old number but those fields are secondary keys. Is there any relationship that i can i use to make the changes on the employee table and it automatically make the changes to the rest of the tables?0
-
Using the Rename function should propagate your changes to other tables - only to fields that are properly related to the Employee."No." field in their tablerelationship property.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 329 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