Jeremy Stein - Brain

« »

Generate Hibernate GUID with Sql Server

To create a Hibernate UUID (uuid.hex) within SQL code (e.g. a stored procedure) use this function:

LOWER(REPLACE(NEWID(),'-',''))

April 10, 2007 No Comments.

No Comments

Be the first to comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?

« »