Unique number

  • Hello

    I need to know if is possible when i use an insert or update TSQL store in one column an uniqueidentifier number.

    In the moment i need this routine to create automaticaly barcode number, but when i run my update statment the number in my column is always the same.

    I hope someone could help me

    Thanks

    Best regards

    Luis Santos

  • quote:


    Hello

    I need to know if is possible when i use an insert or update TSQL store in one column an uniqueidentifier number.

    In the moment i need this routine to create automaticaly barcode number, but when i run my update statment the number in my column is always the same.

    I hope someone could help me

    Thanks

    Best regards

    Luis Santos


    Post the SQL. Use the NEWID() function...

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

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