check guid code example
Example 1: C# generate a new guid
// Create and display the value of two GUIDs.
Guid g = Guid.NewGuid();
Console.WriteLine(g);
Console.WriteLine(Guid.NewGuid());
// This code example produces a result similar to the following:
// 0f8fad5b-d9cb-469f-a165-70867728950e
// 7c9e6679-7425-40de-944b-e07fc1f90ae7
Example 2: unique identifier guid example
GUID
------------------------------------
3297F0F2-35D3-4231-919D-1CFCF4035975
(1 row affected)