Logging Experiences

Different ways of generating new GUIDs

Posted in Programming by Sina Iravanian on September 22, 2012

In C# Code

 var newGuid = Guid.NewGuid();

In Visual Studio

Go to: Tools > Create GUID

In SQL Server Management Studio

Execute either of the following queries:

 SELECT NEWID()

or

 PRINT NEWID()

None of the above

Go to newguid.com, and refresh the page as many times as you want.

Tagged with: