We are using SQL CE on tablet PCs, that synchs with our host SQL 2005 Server using Microsoft Synchronization Services. On the tablets, when inserting a record, we get an error intermittently as follows:
A duplicate value cannot be inserted into a unique index. [ Table name = refRegTitle,Constraint name = PK_refRegTitle
But the only PK on this table is RegTitleID.
The table structure is:
The problem seems to occur when a Title Number is inserted when a record with that number already exists. There is no unique constraint on Title Number.
Has anyone else experienced this and did you find a better solution than putting the .exe in C:\Windows?
A duplicate value cannot be inserted into a unique index. [ Table name = refRegTitle,Constraint name = PK_refRegTitle
But the only PK on this table is RegTitleID.
The table structure is:
Code:
[RegTitleID] [int] IDENTITY(1,1) NOT NULL,
[RegTitleNumber] [int] NOT NULL,
[RegTitleDescription] [varchar](200) NOT NULL,
[FacilityTypeID] [int] NOT NULL,
[Active] [bit] NOT NULL,
The problem seems to occur when a Title Number is inserted when a record with that number already exists. There is no unique constraint on Title Number.
Has anyone else experienced this and did you find a better solution than putting the .exe in C:\Windows?