I have a bunch of dates in the format yyyymmdd without the "-" separated. What is the easiest way to change to yyyy-mm-dd format using only SQL with read access only. i.e 20111230 -> 2011-12-30
One line or optimal performance solution preferable that works in Microsoft SQL