The following error occurs when I try to insert a record into this db. The record with duplicate info was in the table previously, I have made sure that the duplicate record has been removed.
The index for this table is set using the following:
CREATE UNIQUE INDEX [I_SPTBLOP_OPTION_CODE] ON [dbo].[SPTBLOP]([OPTION_CODE]) ON [PRIMARY]
When I run the insert statement via a ADO execute command in VB I get the following error:
Server: Msg 2601, Level 14, State 3, Line 1
Cannot insert duplicate key row in object 'SPTBLOP' with unique index 'I_SPTBLOP_OPTION_CODE'.
The statement has been terminated.
I am not very well versed in SQL so any help would be greatly appreciated.
Thanks, Mark
The index for this table is set using the following:
CREATE UNIQUE INDEX [I_SPTBLOP_OPTION_CODE] ON [dbo].[SPTBLOP]([OPTION_CODE]) ON [PRIMARY]
When I run the insert statement via a ADO execute command in VB I get the following error:
Server: Msg 2601, Level 14, State 3, Line 1
Cannot insert duplicate key row in object 'SPTBLOP' with unique index 'I_SPTBLOP_OPTION_CODE'.
The statement has been terminated.
I am not very well versed in SQL so any help would be greatly appreciated.
Thanks, Mark