Autoincrement uniqueidentifier

前端 未结 4 1503
忘了有多久
忘了有多久 2020-12-13 10:01

Basically I want to use uniqueidentifier in similar way as identity. I don\'t want to insert values into it, It should just insert values automatically, different value for

4条回答
  •  无人及你
    2020-12-13 10:36

    I guess you mean in SQLServer and not C#...

    Set the column as PRIMARY KEY and ROWGUID

    RowGuid http://img341.imageshack.us/img341/8867/sqlserverrowguid.png

提交回复
热议问题