please send me some links where i can read update and delete primary and foreign key values from the form side .
i have window forms and using joins i want to delete values which is attaches from the foreign key and primary key
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mageshwaran RPosted Nov 14, 2019, 11:54 AM
Code AlonePosted Jun 6, 2017, 6:22 AM
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'PRIMARY KEY' AND TABLE_NAME = '[table name]' AND TABLE_SCHEMA ='dbo' )
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'FOREIGN KEY' AND TABLE_NAME = '[table name]' AND TABLE_SCHEMA ='dbo' )