Sina Iravanian

I blog about software development

Different Ways of Generating New GUIDs

| Comments

In C# Code

1
var newGuid = Guid.NewGuid();

In Visual Studio

Go to: Tools > Create GUID

In SQL Server Management Studio

Execute either of the following queries:

1
SELECT NEWID()

or

1
PRINT NEWID()

None of the above

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

Comments