Search This Blog

Friday, April 6, 2012

Create a new Guid in T-SQL

Use NewID() function.


1SELECT newid()
Result:
11CA040D5-53D6-4E7C-8D36-1000C8B03A91

No comments: