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
Based on various helpful responses in this article I landed with a combination of a couple options I liked.
DECLARE @UserId BIGINT = 12345 -- a uniqueId in my system SELECT LOWER(REPLACE(NEWID(),'-','')) + CONVERT(VARCHAR, @UserId)