I have two tables in my database and the t1 table primary key is uid, t2 table a foreign key name desg. now I want to delete or update this uid in one table give error that
Now row was updated. data in the row was not committed. error source:.netSqlclient data provider. error message: the update statement conflicted with the reference constraint fk_t2_t1.the conflict occur in the database DBname, dbo.t2,column desg. the stsement has been terminated.
and when I try to delete, it show this message.
executed SQl statement: delete from t1 where uid='abc'
error source:.netSqlclient data provider. error message: the Delete statement conflicted with the reference constraint fk_t2_t1.the conflict occur in the database DBname, dbo.t2,column desg. the stsement has been terminated.
Please tell me how to do this update and delete.
I am new to this field need help thanks in advances.