Why does Navision maintain each index as unique?

mmaxgon
Member Posts: 9
When I create an index in Navision which is not intended to be unique, primary key fields as added to the index and it is created as unique in SQL Server.
0
Comments
-
Who knows why they did that. If I were to speculate I'd say they added the PK fields to each secondary key in the Native NAV database for sorting purposes. The NAV database is an ISAM based database system, so I guess for that system it is necessary to do this.
In the native database you don't see those fields, so you wouldn't have asked the question. Now that we have access to SQL Server we get a glimpse of how they did certain things, or at least WHAT they did. You can't change it anyway.0 -
With Navision 4.00SP1 and up, you can tell SQL (with the properties on the keys) to
-maintain the Navision-key as a SQL-index or not (MaintainSQLIndex)
-maintain the Navision-SIFT in SQL or not(MaintainSIFTIndex)
-the SIFT-levels to maintain (SIFTLevels)
-to create another index in SQL (SQLIndex).
With this last one, you can remove the fields you don't need in SQL.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
There could be a many design reasons to attach primary key to every index. For example, Nav has excellent grid paging feature that dynamically gets data. So, when you open form with some huge table, data read response is very fast whatever sorting key you choose. When you insert some new record with sorting key chosen other than primary(eg. Entry No.) , it will immediately be positioned according to selected sorting order. That is possible because every index has primary key characteristic (by definition that it is unique).
Best Regards,
Amer0
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