select REPLICATE ('0',8-DATALENGTH (EmployeeCode ))+EmployeeCode as 'EmpCode' from TBL_DKCSV
var newEmployeeCode = EmployeeCode.PadLeft(8,'0');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)