P
Paul Marker
I have a relation called Correspondence of the following
format:
corrId int identity(1, 1) primary key
type varchar(50)
cwith varchar(50)
isInternal smallint(2)
rowguid uniqueidentifier
the rowguid attribute was added by sql server when setting
up merge replication.
On the CE application I am trying to insert a row into the
table and then pull the corrId back out using @@IDENTITY.
Strangely when I try and insert I get the following error:
HR: 800040E2F
Native: 25016
Message: A duplicate value cannot be inserted into a
unique index [,,,,,]
Source: Microsoft SQL Server 2000 Windows CE Edition
Parameter 1: 0
Parameter 2: 0
Parameter 3: 0
Parameter 4:
Parameter 5:
Parameter 6:
I could understand the error the corrId was being
incremented by 1 each time (& it didn't have the
uniqueidentifier attribute). The question is what I am
missing that causing the problem?
Thanks.
format:
corrId int identity(1, 1) primary key
type varchar(50)
cwith varchar(50)
isInternal smallint(2)
rowguid uniqueidentifier
the rowguid attribute was added by sql server when setting
up merge replication.
On the CE application I am trying to insert a row into the
table and then pull the corrId back out using @@IDENTITY.
Strangely when I try and insert I get the following error:
HR: 800040E2F
Native: 25016
Message: A duplicate value cannot be inserted into a
unique index [,,,,,]
Source: Microsoft SQL Server 2000 Windows CE Edition
Parameter 1: 0
Parameter 2: 0
Parameter 3: 0
Parameter 4:
Parameter 5:
Parameter 6:
I could understand the error the corrId was being
incremented by 1 each time (& it didn't have the
uniqueidentifier attribute). The question is what I am
missing that causing the problem?
Thanks.