How to remove leading zeroes from a numeric excel field in SSIS

  • I'm using derived column transformation editor to remove leading zeroes from the number. Can anyone help me how to do it?

  • uzn2010 (4/12/2016)


    I'm using derived column transformation editor to remove leading zeroes from the number. Can anyone help me how to do it?

    Numeric data imported from Excel does not have leading zeros (after import).

    Are you importing the columns as strings?

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Yes, the column was string actually and using this helped that issue

    REPLACE(LTRIM(REPLACE(F6,"0"," "))," ","0")

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply