2
Reply

What is GUID in sql server?

Purushottam Rathore

Purushottam Rathore

Nov 03, 2010
6.5k
0

    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


    Harshit Vyas
    November 15, 2010
    0

    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.

    Purushottam Rathore
    November 03, 2010
    0