Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence
CREATE TABLE #table_name(birthdate_new VARCHAR(8)); INSERT INTO #table_name VALUES ('12162003'), ('507200'); select RIGHT('00000000' + birthdate_new, 8) from #table_name