User-719153870 posted
Hi E.RU,
It seems that there is a foreign key constraint between the table you want to clear data from and some other tables.
When you try to clear the data from this table, you will see upon errors.
If you still want to clear the data, you can consider removing the foreign key constraint of this table in SQL.
You can refer to the following in SQL:
First, you need to know what’s the foreign key constraint with this table. You can use
exec sp_helpconstraint ' tbl '
to see the constraints like below:

Second, use
alter table tb1 drop constraint fka
to drop the constraint in tb1
Best Regard,
Yang Shen