try:
convert(smalldatetime,substring('20040910',1,4)+'-'+substring('20040910',5,2)+'-'+substring('20040910',7,2))