Could anyone explain why the NEWSEQUENTIALID() generates a partly utilized GUID.
Software I am writing uses Entity Framework, and whenever creating an entry into a table that uses GUID's as primary keys, for some reason the GUID's "node" component is never used.
This is how the entity id is marked up in code first and its nothing special:
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id { get; set; }
Here are some of the entries when created:
30F74F3E-F36B-1410-B730-800000000000
31F74F3E-F36B-1410-B731-800000000000
32F74F3E-F36B-1410-B732-800000000000
33F74F3E-F36B-1410-B733-800000000000
34F74F3E-F36B-1410-B734-800000000000
As you can see the "node" component is always: 80 00 00 00 00 00
Is there a method of configuration (either as code first or directly running sql on the database) to let mssql know that it should use the "node" component if possible? I dont want to random GUID's as this is a massive performance hit when searching.
If NEWSEQUENTIALID() is not configurable then what is the design reason behind not using the "node" component of the GUID?