Sql Primary Key Exception March 26, 2024 Post a Comment I have a Mircrosoft Sql Server database made up of about 8 tables that are all related that I am trying to update. To do this I create a number of temporary tables 'CREATE TABLE [vSolution 1: If your temp tables need that constraintWhen create useCONSTRAINT [PK_maintenance_event_id_temp"] Copyinstead ofCONSTRAINT [PK_maintenance_event_id]Copywhen you rename temp back to real tableexec sp_rename [PK_maintenance_event_id_temp], [PK_maintenance_event_id]Copy Share Post a Comment for "Sql Primary Key Exception"
Post a Comment for "Sql Primary Key Exception"