I need to load a numeric column into a varchar(12) column, and I need to left pad with zeros. The numeric values could be of varying lengths from 5 - 11.
For example, a 12345 from my input data file needs to look like 000000012345 once loaded into the table column.
Does anyone know a good way to do this in SQL Server 2000?
Thank you!
Linda
For example, a 12345 from my input data file needs to look like 000000012345 once loaded into the table column.
Does anyone know a good way to do this in SQL Server 2000?
Thank you!
Linda