Proprietà ForeignKey.ScriptReferencedTableSchema

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property ScriptReferencedTableSchema As String 
    Get 
    Set
'Utilizzo
Dim instance As ForeignKey 
Dim value As String 

value = instance.ScriptReferencedTableSchema

instance.ScriptReferencedTableSchema = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string ScriptReferencedTableSchema { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property String^ ScriptReferencedTableSchema {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member ScriptReferencedTableSchema : string with get, set
function get ScriptReferencedTableSchema () : String 
function set ScriptReferencedTableSchema (value : String)

Valore proprietà

Tipo: 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.

Esempi

Creazione, modifica e rimozione di chiavi esterne

Vedere anche

Riferimento

ForeignKey Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Creazione e modifica di vincoli FOREIGN KEY

CREATE TABLE (Transact-SQL)