I need to generate alphanumeric random number with 6 character length and it should contain Numerics, Alphabets (Both Lowercase and Uppercase) check the query below.
I NEED TO IMPLEMENT IN FUNCTION. (In function is it possible to use NEWID(), RAND()).
SELECT SUBSTRING(CONVERT(VARCHAR(255), NEWID()),0,7)
Output:
23647D
06ABA9
542191
.
.
.
I Need Output as:
236m7D
3n64iD
6t4M7D
.
.
.