Convert integer & decimal values into decimal column

Naresh y 146 Reputation points
2023-08-31T12:04:31.81+00:00

HI

everyone

i have in my source column, data look like this.

my column length allows Decimal (10,7)

these are the sample results in my column

5528

2666

3333.16

4102.65

how do i load these values into my target column Decimal (10,7)

we need to convert this integer values with decimals like below ( for the first two records)

5528.00

2666.00

3333.16

4102.65

how to convert using ssis derived column expression ,please suggest

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 26,586 Reputation points
    2023-08-31T12:24:33.21+00:00

    Hi @Naresh y,

    You don't need to do anything.

    INTEGER values like 5528 will automatically be converted into DECIMAL(10,7) upon insert into a table where column has DECIMAL(10,7) data type.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.