Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to Append Zeros if the value of Excel File is Less Than 9(Nine), If Equals to Nine or greater than 9 it should insert as it is the value arrives

$
0
0

Hello All,

 

I am using SSIS 2008, i have a excel file source, which have values less than 9, when inserting into my destination Table it Should insert Minimum 9 Values, if the incoming value is greater than 9 or equal to 9 it should insert as it is, Example as shown below.

Excel File have Column Like this

Customer ID

----------------

12345

123456

1234567

12345678

123456789

12345678910

123456789012

In my Destination Table it should insert as,

ID

==

000012345

000123456

001234567

012345678

123456789

12345678910

123456789012

 

Can please anyone Provide solution for this.it will be so much helpful to me.

 

 

Thanks

======

supreeth.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>