DECLARE @ID uniqueidentifier; SET @ID = NEWID(); Dim id as Guid = Guid.NewGuid()