Open links in new tab
  1. A Look at GUIDs – SQLServerCentral

    Jan 8, 2003 · Not many people enjoy using Globally Unique Identifiers (GUIDs), partly because they are cumbersome to type and work with for humans. However they fill a need and can provide some …

  2. GUID v4 vs GUID v7 as SQL Server PK - Database Administrators Stack ...

    Dec 31, 2025 · But recently I've found information that SQL Server is treating unique identifiers differently than other databases and that in the case of SQL Server this won't work as expected. The …

  3. performance - Guid vs INT - Which is better as a primary key ...

    The generated GUIDs should be partially sequential for best performance (eg, newsequentialid() on SQL Server 2005+) and to enable use of clustered indexes If you are certain about performance and you …

  4. Converting between binary hex and GUID (uniqueidentifier)

    Nov 8, 2018 · I get this: 0x34333336373833302D343433372D3335, which is nonsensical. Bottom line: does ANYONE have a reliable way to translate between binary and GUID (uniqueidentifier) formats?

  5. GUID vs BIGINT – SQLServerCentral Forums

    May 13, 2014 · Well, a lot of the information is right there in the SQL Server documentation. A GUID is 16 bytes while a bigint is 8 bytes. That alone affects the distribution of the data across the key pages …

  6. casting uniqueidentifier to number and back - SQLServerCentral

    Jul 24, 2012 · A uniqueidentifier (GUID) contains text, so it's only logical that you cannot convert it directly to an INT. What you can do is create a mapping table. Generate your GUID and insert it into …

  7. passing GUID to a stored procedure – SQLServerCentral Forums

    Dec 19, 2007 · Note that in SQL Server 2005, the curly braces ( {, }) are allowed as part of a GUID (uniqueidentifier) parameter value. However, the GUID value must be enclosed within single quotes.

  8. Guid vs Identity columns (Ints) – SQLServerCentral

    Feb 13, 2009 · Guid vs Identity columns (Ints) Kenneth Fisher, 2014-01-20 (first published: 2014-01-13) I came across an interesting question on SE last week. Guid vs INT – Which is better as a primary key?

  9. sql server - What is the purpose of a Row_GUID column? - Database ...

    Jun 7, 2016 · 26 I've been digging around in the AdventureWorks2012 database and see Row_GUID used in several tables. There are 2 parts to my question: When should I include a Row_GUID …

  10. sql server - SSMS - Database Administrators Stack Exchange

    Jan 4, 2023 · But in come cases we have columns that are of type UniqueIdentifier (GUIDs) that are required which I else would use NewID () to generate when writing SQL directly. So I have all …