다음을 통해 공유


RowGuidCol 속성

Gets or sets the Boolean property value that specifies whether the column is automatically updated with a unique GUID value.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public Property RowGuidCol As Boolean
    Get
    Set
‘사용 방법
Dim instance As Column
Dim value As Boolean

value = instance.RowGuidCol

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

속성 값

형식: System. . :: . .Boolean
A Boolean value that specifies whether the column contains an automatically updated unique GUID value.
If True, the column is automatically updated with a unique GUID value. Otherwise, False (default).

주의

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.