Hi,
I'm currently doing a migration of a native DB to SQL. I'm using the migration script from NAV (with a little adjustment here and there to kick out some extra special characters).
But ....
during the restore of the navision backup (taken after the exec of the migration codeunit) I get an error that the primary key of the Invoice Posting Buffer table exceeds the restriction of 16 colums in the primary key. This results in a complete rollback.
When I look into the table definition of the Invoice Posting Buffer table I see that somebody has added some extra fields to the primary key and the key now holds 18 fields.
I always thought that the primary key could hold 20 fields, isn't that correct or is this only for native (as proven by this case, but I'm asking to be sure).
I'm glad that I can remove the two standard dimension fields from the primary key, and now I'm starting the backup/restore again.
Is there a work around this so I do not have to change the key definition, or can I add the deleted fields after the restore has completed succesfully?
Regards,
Now, let's see what we can see.
...
Everybody on-line.
...
Looking good!
0
Comments
Oh and take a look at the Sales Price table if you want to see where they also did this.
A primary key should be designed well enough to be small AND allow future enhancements with out having to change it.
But leaving al this aside, its weird (but true) that in Native you can have 20 fields in a primary key but in SQL only 16.
Thanks for the reply!
...
Everybody on-line.
...
Looking good!
If I remember correctly this problem is caused by extra fields Navision BE added for their version with multiple dimensions.
I also encountered that problem at a certain time.
I removed some not used fields from the key (like the USA Taxes fields that are not used in Belgium) and all worked fine.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!