AuthorQuestion
What is the size of a GUID?
Posted on: 19 Nov 2012
What is the size of a GUID?
Vithal Wadje

[ + ]
AuthorReply
Vulpes
  • 1
  • 0
Re: What is the size of a GUID?
Posted on: 19 Nov 2012  
128 bits or 16 bytes.
Re: What is the size of a GUID?
Posted on: 20 Nov 2012  


For a table GUID uses for primary key and when we use it as a primary key so it creates a clustered index on that table. When we use GUID as clustered index then it decreases performance for inserting new data.

because there is 16 bytes binary data which is logically grouped by "-" sign.

for example

    12345678-1234-1234-1234-1234567890EF
    4bytes   2bytes 2bytes 2bytes 6bytes 

So its size 4+2+2+2+6 = 16bytes

You won't get much help if you don't start accepting some answers people give you.  @dotnet_sandeep 
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.