Created
April 15, 2015 04:09
-
-
Save Saanch/94235c00c61c27c16a1d to your computer and use it in GitHub Desktop.
Generate GUID at SQL Server side
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @myid uniqueidentifier | |
SET @myid = NEWID() | |
PRINT 'Value of @myid is: '+ CONVERT(varchar(255), @myid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment