I know that if you use NEWID()
in SQL itself will not create repeated keys.
And the same goes for NewGuid()
within C# environment.
But how about do it on both side?
Such as create a NewGuid()
and insert it into SQL Server table in part of the code and call NEWID()
in another part of the code.
Will they create the same key, no matter how unlikely it is, and cause trouble!?
Much appreciated!