I want to know how can I get the year and month into my database. For example, suppose it’s August, 2011. The output that I need is like this: CAB 11 08 001 (CA
CAB 11 08 001
Using your method \ logic..
Right('0' + Cast(Month(GetDate()) as varchar(10)),2)