Sumit Kumar Sinha

Sumit Kumar Sinha

  • NA
  • 159
  • 79.7k

How we can generate a alpha-numeric CustomerID in sql server

Oct 26 2012 2:27 AM
How we can generate a alpha-numeric CustomerID in sql server. For example, SC-12-10-26-0001, here SC is fix for every customer, 12 is showinng current year,10 is showing current month, 26 is showing current date and 0001 is showing first cutomer of the current date. I want to generate ID according to this. If new year, month or date is coming then it's change accroding to this. Pl'z guide me how we can solve this.......

Answers (1)