Skip to content

Instantly share code, notes, and snippets.

@bltavares
Created December 1, 2011 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bltavares/1417981 to your computer and use it in GitHub Desktop.
Save bltavares/1417981 to your computer and use it in GitHub Desktop.
RAndom values on updates
-- T-SQL
select
(CONVERT([tinyint],(1)+rand(checksum(newid()))*(28),(0)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment