How do I add a primary key to a column that already exists.
I've tried:
ALTER TABLE dbo.CensusSourceData_Ilot
ALTER COLUMN Column1
ADD CONSTRAINT Column1_pk PRIMARY KEY
but that doesn't work.
It seems a simple thing to do, but I can't see how to do it anywhere on the web. Any help would be much appreciated
thanks,
Matt
I've tried:
ALTER TABLE dbo.CensusSourceData_Ilot
ALTER COLUMN Column1
ADD CONSTRAINT Column1_pk PRIMARY KEY
but that doesn't work.
It seems a simple thing to do, but I can't see how to do it anywhere on the web. Any help would be much appreciated
thanks,
Matt