ForeignKey.ScriptReferencedTableSchema Property

 

Applies To: SQL Server 2016 Preview

Gets or sets the Boolean value that specifies whether to script the schema of the table referenced by the foreign key.

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

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Matrix)]
public string ScriptReferencedTableSchema { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::SqlAzureDatabase | SfcPropertyFlags::Matrix)]
property String^ ScriptReferencedTableSchema {
    String^ get();
    void set(String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Matrix)>]
member ScriptReferencedTableSchema : string with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Matrix)>
Public Property ScriptReferencedTableSchema As String

Property Value

Type: System.String

A Boolean value that specifies whether to script the schema of table referenced by the foreign key.

If True, the schema of the table referenced in the foreign key is included in scripting operations.

If False (default), no attempt is made to include the schema of the table referenced by the foreign key in scripting operations.

Examples

Legacy Code Example

Creating, Altering, and Removing Foreign Keys

See Also

ForeignKey Class
Microsoft.SqlServer.Management.Smo Namespace

CREATE TABLE (Transact-SQL)
Unable to find linked topic '265bbe66-a36b-4eee-b6d4-f2972b7b2ba7'.

Return to top