Ö
Özden Irmak
Hello,
I'm having a difficulty on setting a relationship with a sql CONSTRAINT
clause.
I get an error like 'Cannot create relationships to force referential
integrity.Existing data in table POS_TRAN_LINES violates this.'. My sql
clause is as follows :
ALTER TABLE [POS_TRAN_LINES] ADD CONSTRAINT [Reference18] FOREIGN KEY
([WAITER_ID]) REFERENCES [STAFF] ([ID])
I can set the reference inside Access's IDE when 'Enforce Referential
Integrity' is unchecked in edit relationships box. How can I mention this
option within this sql clause?
Thanks in advance,
Özden
I'm having a difficulty on setting a relationship with a sql CONSTRAINT
clause.
I get an error like 'Cannot create relationships to force referential
integrity.Existing data in table POS_TRAN_LINES violates this.'. My sql
clause is as follows :
ALTER TABLE [POS_TRAN_LINES] ADD CONSTRAINT [Reference18] FOREIGN KEY
([WAITER_ID]) REFERENCES [STAFF] ([ID])
I can set the reference inside Access's IDE when 'Enforce Referential
Integrity' is unchecked in edit relationships box. How can I mention this
option within this sql clause?
Thanks in advance,
Özden