Any suggestions? Export (0) Print
Expand All

ForeignKey Constructor (Table, String)

 

Initializes a new instance of the ForeignKey class on the specified table with the specified name.

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

public ForeignKey(
	Table table,
	string name
)

Parameters

table
Type: Microsoft.SqlServer.Management.Smo.Table

A Table object value that specifies the table on which to create the foreign key.

name
Type: System.String

A String value that specifies the name of the foreign key.

Return to top
Show:
© 2016 Microsoft