Purushottam Rathore
What is GUID in sql server?
By Purushottam Rathore in .NET on Nov 03 2010
  • Harshit Vyas
    Nov, 2010 15

    SELECT NEWID()

    INSERT INTO Employees
    (EmployeeID, Name, Phone)
    VALUES
    (NEWID(), 'harshit vyas', '99-99999')

    to generate a random unique identifier in using sql query in SQL server and to use as unique key


    • 0
  • Purushottam Rathore
    Nov, 2010 3

    GUID indicating a Globally Unique Identifier. It consists of a 16-byte hexadecimal numbe. The GUID is useful when a row must be unique among many other rows.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS