一般可以自己转化的。
declare @a datetime
select @a='20051101'
select @a
/*结果
2005-11-01 00:00:00.000*/