UPDATE VISION_SALEHIST4 SET saledate_mmddyyyy = SALEDATE
UPDATE VISION_SALEHIST4 SET SALEDATE= CONVERT(DATETIME, (SUBSTRING(saledate_mmddyyyy, 5, 4) + '.' + SUBSTRING(saledate_mmddyyyy, 1, 2) + '.' + SUBSTRING(saledate_mmddyyyy, 3, 2)), 101)
UPDATE .... WHERE NOT saledate_mmddyyyy IS NULL
UPDATE VISION_SALEHIST4 SET SALEDATE=Convert(varchar(20), saledate_mmddyyyy ,120)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)