micatran
3/29/2007 9:49:00 PM
Sorry for my mistake, it is not read-only. It will not let me change
records because there is no unique key. Correct me if I am wrong.
On Mar 29, 5:39 pm, "Tom Moreau" <t...@dont.spam.me.cips.ca> wrote:
> Well, if the DB is read-only, you can't create any constraints - even if
> none of your data violate the constraints.
>
> --
> Tom
>
> ----------------------------------------------------
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada
> .<micat...@gmail.com> wrote in message
>
> news:1175204095.352626.163510@e65g2000hsc.googlegroups.com...
> Hi,
>
> I am using sql server, and I want to add a primary key but I get this
> error.
>
> '1_REFAREA_ZIP_95' table
> - Unable to create index 'PK_1_REFAREA_ZIP_95'.
> ADO error: CREATE UNIQUE INDEX terminated because a duplicate key was
> found for index ID 1. Most significant primary key is '37892'.
> Could not create constraint. See previous errors.
> The statement has been terminated.
>
> I know that I have a duplicate ID, but how do I delete the ID if I
> dont have a unique key or primary key specified. It says the database
> is read-only, and I cannot delete the record. Please help.
>
> Thank you in advance.