SQL Server

Generate New Guid (uniqueidentifier) in SQL Server

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.


About the author


Leave a Comment