///////////// Sql query
--------------- for more secure string
SELECT LEFT(REPLACE(CONVERT(VARCHAR(255),NEWID()),'-',''),10)+RIGHT(REPLACE(CONVERT(VARCHAR(255),NEWID()),'-',''),10)
SELECT LEFT(REPLACE(CONVERT(VARCHAR(255),NEWID()),'-',''),4) + RIGHT(REPLACE(CONVERT(VARCHAR(255),NEWID()),'-',''),4) +
LEFT(REPLACE(CONVERT(VARCHAR(255),NEWID()),'-',''),4) +
RIGHT(REPLACE(CONVERT(VARCHAR(255),NEWID()),'-',''),4)
---------------
Result
A6A1B0FA27A405B38515
CBB8E0390AF48984