SQL 2008 vs AutoIncrement

maxdebe
Member Posts: 3
Hi
I' ve a SQL Table which contain a field IDREC as primary Key with property Identity = yes
When I try to open the table in Nav 4sp2 I receive the following error :
"The Table xxxx contain a field which Autoincrement value daesn't match IDENTITY status of SQL Server : field IDREC"
Navision AutoIncrement property is set to NO
Can someone help me to set a NAv field using SQL Identity property ?
Thanks
Max
I' ve a SQL Table which contain a field IDREC as primary Key with property Identity = yes
When I try to open the table in Nav 4sp2 I receive the following error :
"The Table xxxx contain a field which Autoincrement value daesn't match IDENTITY status of SQL Server : field IDREC"
Navision AutoIncrement property is set to NO
Can someone help me to set a NAv field using SQL Identity property ?
Thanks
Max
0
Comments
-
Just set the Autoincrement property of the field in NAV.
And one thing- never set different properties directly on SQL when you are not sure what you are doing. It could lead only into problems...0 -
My table is an interface table between two systems.
I would like to populate the table data from a sql souce external from NAV.
Writing the rec i need to create the index field IDREC
It seem to be a simple thing.....
Max0 -
And what is the problem? Have you read my answer? Is there some error when you are setting the property?0
-
I ran into the same problem:the source table contains an SQL IDENTITY field, while the corresponding Nav field had AutoIncrement initially set to false.
When I wanted to add a new field to the Nav table I ended up in a Catch 22 situation. I got the error"The xxx table contains a field with an AutoIncrement value that does not match the SQL Server IDENTITY status:"
But when I changed the autoincrement of the corresponding field to true, I got the error"The xxx table references a SQL Server object. You cannot redesign linked objects."
So there was no way of changing the Nav table anymore. I ended up exporting the table definition to text, adding the autoincrement property to it, deleting the object and recreating it by importing the txt file.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