Export (0) Print
Expand All

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)

'Declaration
Public Enumeration ForeignKeyAction
'Usage
Dim instance As 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.

Community Additions

Show:
© 2015 Microsoft