sql - How do i delete a foreign key constraint programmatically in Microsoft Access -


How do I programmatically remove a foreign key hurdle in Microsoft Access, better to use SQL For starters, I do not know how to find the name of the foreign key.

I connect to the Java application using the JDBC-ODBC bridge. I want to execute SQL from my Java application.

In the relation view I can see the relationship in the entrance, but there is no way to find the name. If I can locate the name, then I hope I can remove it from an optional table statement.

set

Select the relationship using szRelationship Msysrelationships WHERE szObject = 'childtablename' and szReferencedObject = 'parenttablename'

THEN

Use ALTER table command

optional table Table 2 Drop Contral Relation 1


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -