I am trying to import an excel file with zip+4 data that includes leading zeros. When I import using DTS the leading zeros are dropped. Is there a way to do this and keep the leading zeros?
I had trouble with this, too. The single quote was not working... My DTS package counted anything with a leading zero null. My approach was to append a character (i.e. X) to the front of all values in the column then strip off the x when I moved it from a temporary table to the permanent table with this code:
Code:
SET @SizeOfPart = Right(@SizeOfPart, Len(@SizeOfPart)-1)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.