MSSQL ID generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BbEsy
    New Member
    • Sep 2009
    • 28

    MSSQL ID generation

    hello I have one questiom im new to SQL dbs...
    I need to generate ID in one table in this format

    YYYYMMDDXXX

    where YYYYMMDD is date of day and XXX is uniqe number raising by 1 .
    and every day XXX starts from 000
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    You can use trigger to implement this one.

    Happy Coding!!!

    ~~ CK

    Comment

    Working...