Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Update statement failed

$
0
0

UPDATE provision SET telephone_number='55555555', email_address='test@test.com', fax_number='124544433' where telephone_number is not null or fax_number is not null or email_address is not null GO

Msg 2627, Level 14, State 1, Procedure trg_iu_pr, Line 101
Violation of PRIMARY KEY constraint 'constraint_name'. Cannot insert duplicate key in object 'dbo.provision'. The duplicate key value is (1).
The statement has been terminated.

I checked the table and couldn't find any duplicate values.

Any suggestions???




Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>