Generating GUID

后端 未结 4 1090
囚心锁ツ
囚心锁ツ 2020-12-31 08:02

I am thinking to use a GUID in my .net app which uses SQL Server. Should I be writing a stored procedure which generates the GUID on each record entered or should I be direc

4条回答
  •  不知归路
    2020-12-31 08:08

    RFC41221: «Do not assume that UUIDs are hard to guess; they should not be used as security capabilities (identifiers whose mere possession grants access), for example. A predictable random number source will exacerbate the situation».

    In simple task incremental uint64 better.

    NOT USE GUID! If need security.

    http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/b37b3438-90f4-41fb-adb9-3ddba16fe07c

提交回复
热议问题