By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,806 Members | 1,787 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,806 IT Pros & Developers. It's quick & easy.

MSSQL ID generation

P: 28
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
Jan 13 '10 #1
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
You can use trigger to implement this one.

Happy Coding!!!

~~ CK
Jan 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.