Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

ForeignKeyAction Enumeration

The ForeignKeyAction enumeration is a list of constant values that specify the action that is taken when the primary key reference by a foreign key is updated.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)

public enum ForeignKeyAction

Member nameDescription
NoActionNo action is taken.
CascadeThe modification is also made to the foreign key.
SetNullThe foreign key is set to null.
SetDefaultThe foreign key is set to the default value.

The ForeignKeyAction enumeration class is served by the UpdateAction property and the DeleteAction property.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft