Share via


Propriété RowGuidCol

Obtient ou définit la valeur de la propriété Boolean qui spécifie si la colonne est mise à jour automatiquement avec une valeur GUID unique.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property RowGuidCol As Boolean
    Get
    Set
'Utilisation
Dim instance As Column
Dim value As Boolean

value = instance.RowGuidCol

instance.RowGuidCol = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool RowGuidCol { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property bool RowGuidCol {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member RowGuidCol : bool with get, set
function get RowGuidCol () : boolean
function set RowGuidCol (value : boolean)

Valeur de propriété

Type : System. . :: . .Boolean
Valeur Boolean qui spécifie si la colonne contient une valeur GUID unique mise à jour automatiquement.
Si la valeur est True, la colonne est mise à jour automatiquement avec une valeur GUID unique. Dans le cas contraire, la valeur est False (valeur par défaut).

Notes

The RowGuidCol property is equivalent to the ADD or DROP ROWGUIDCOL Transact-SQL statement in the ALTER TABLE statement

When this property is set to True, the column is automatically updated with a unique GUID value. If the data is copied to another table, the GUID value will not be identical to the original column value. There is only one RowGuidCol column allowed per table.