If you wanted to generate a pseudorandom alphanumeric string using T-SQL, how would you do it? How would you exclude characters like dollar signs, dashes, and slashes from it?
Using a guid
SELECT @randomString = CONVERT(varchar(255), NEWID())
very short ...
2.1m questions
2.1m answers
60 comments
57.0k users