Auto Generator Number - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Auto Generator Number

shehparshehpar Posts: 3Member
Dear All,
i have problem in producing the auto generated number. my requirements are to produce series of numbers like that

after that the number changes to


the last number should be

If there is any person who help me in producing that module / algorithm or piece of code in C# / T-SQL, i will be thankful for that.

NOTE:- the number should me auto generated i.e., after one transaction the new number would be generated.
or. in case of T-SQL, when inserting new record, the eky would be that number like the example that i stated above.

Hope that there is someone which will help me.

Best regards.
Sign In or Register to comment.