Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ForeignKeyAction Enumeration
Collapse the table of content
Expand the table of content

ForeignKeyAction Enumeration

The ForeignKeyAction enumeration is a list of constant values that specify the action 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
public enum ForeignKeyAction
public enum ForeignKeyAction

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

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

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.


Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show:
© 2015 Microsoft