Solved

SSIS Derived Column help add decimal

Posted on 2014-03-04
1
551 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
ID: 39905117
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Schedule SSIS package in WIndows Task Scheduler 8 34
sql, case when & top 1 14 27
Are triggers slow? 7 12
Casting is giving error in sql server 3 8
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

860 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