Generate New Guid (uniqueidentifier) in SQL Server – Programming Code Examples
SQL Server

Generate New Guid (uniqueidentifier) in SQL Server1 min read

This post sbout how to generate a random unique identifier in using sql query in SQL server

If you want to generate a new Guid (uniqueidentifier) in SQL server the you can simply use the NEWID() function.


You can directly use this with INSERT statement to insert new row in table.


Leave a Comment