Solved

SSIS Derived Column help add decimal

Posted on 2014-03-04
1
511 Views
Last Modified: 2016-02-10
I need help converting a number in SSIS derived column.

The field is currently set as a string [wstr].

the number looks like this 5834

It needs to be 58.34

does someone know the ssis expression to add the decimal after the first two digits?
0
Comment
Question by:rtay
1 Comment
 
LVL 9

Accepted Solution

by:
Sreedhar Vengala earned 500 total points
Comment Utility
Use Derived Column Transformation.  Where 'numericvalue' is your input string.

(DT_DECIMAL,2)(SUBSTRING(numericvalue,1,LEN(numericvalue) - 2) + "." + RIGHT(numbericvalue,2))
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

From time to time, for debugging and troubleshooting your flow at run time you’ll need to check if the variable has the correct value or not, there’re several ways to check for the value of the variables inside the flow, You can add Break Points, a …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now