All of the code samples have now been consolidated and moved to my blog at http://house9.blogspot.com/. Many google searches still point here so I am leaving this blog operational.

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:

Custom Search
< ... back