Skip to content

Instantly share code, notes, and snippets.

@tayyebi
Created June 8, 2017 11:42
Show Gist options
  • Save tayyebi/d3a0ada2eadcfe3f5671d39794748182 to your computer and use it in GitHub Desktop.
Save tayyebi/d3a0ada2eadcfe3f5671d39794748182 to your computer and use it in GitHub Desktop.
Generate Random 10 Char String SQL
select SUBSTRING(Replace(CONVERT(varchar(255), NEWID()), '-', ''), 0, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment