共用方式為


RowGuidCol 屬性

取得或設定 Boolean 屬性值,這個值會指定資料行是否使用唯一 GUID 值自動更新。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property RowGuidCol As Boolean
    Get
    Set
'用途
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)

屬性值

型別:System. . :: . .Boolean
Boolean 值,指定資料行是否包含自動更新的唯一 GUID 值。
如果為 True,則表示資料行會使用唯一 GUID 值自動更新。否則為 False (預設值)。

備註

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.