The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.

Sunday, February 11, 2007

Generate a Guid from MSSQL

Really simple...

SELECT NEWID()


This returns a MSSQL datatype of uniqueidentifier
read more here - http://msdn2.microsoft.com/en-us/library/aa276822(SQL.80).aspx

No comments: