Generate Random alphanumeric value based on timestamp

  • Hi All,

    Thank you for looking into my question.

    Does anyone have a script that could take the current timestamp and convert that into a random alphanumeric value (30+ digits).

    Thanks

  • Why not simply use NEWID() function? Or you want date and time to be a part of the generated random number? I guess sample of the desired output will be nice.

    --Vadim R.

  • Siva Ramasamy wrote:

    Hi All, Thank you for looking into my question. Does anyone have a script that could take the current timestamp and convert that into a random alphanumeric value (30+ digits). Thanks

    A 30 character random alpha-numeric generator will generate a shedload of swear words.  Us 2 GUIDs, instead.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply