Sorry guy but in SQL Server 2008 R2 having a date as 2012-05-10
how can I retrieve a fromat like 201205 . I tried with substring, concat and stuff like this but I went into a loop...the last was year(setdate)&month(setdate) but it doesn't work...
Thanks