The syntax looks a little silly when the word "check" is repeated, but you want:
alter table table1 with check check constraint fk_1 go
Adding the "with validation" option checks existing data for restriction. It will also prevent untrusted restriction.
If any existing data violates the restriction, you will receive an error message that looks like this:
The ALTER TABLE statement conflicted with the CHECK constraint "fk_1".
source share