• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 910
  • Last Modified:

ssis does not convert decimal positions correctly

I am converting an excel to sql using ssis import/export wizard. The problem I am having is, one of my fields has 5 decimal positions. SSIS converts it to 2. What do I need to do to correct that issue.
0
qbjgqbjg
Asked:
qbjgqbjg
  • 5
  • 2
2 Solutions
 
jijeeshCommented:
You can do it in "Advanced Editor"

Right Click on the "Excel Source" in Data flow task
Go "Show Advanced Editor"
Goto Input Output Properties tab and update your column's datatype as required.
0
 
derekkrommCommented:
When you define a numeric variable in SQL, there are 2 parameters: precision and scale

So if the datatype is numeric(18, 5), it means you can have 18 digits total and 5 of them can be to the right of the decimal place.

So you'll need to define your data type as a numeric(??, 5), depending on how large your #s get.
0
 
qbjgqbjgConsultantAuthor Commented:
So, if I change the data type to decimal(18,5) it should work. Can I do that under the wizard? Would I still need to change it in the Excel?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
qbjgqbjgConsultantAuthor Commented:
Thanks for removing Crystal as a zone. I did not add it. It must have remained from my previous question.
0
 
derekkrommCommented:
Yes, when you're on the "Select Source Tables and Views" portion, click "Edit Mappings"

From there, you should see the Precision/Scale columns and can change your definitions accordingly.
0
 
qbjgqbjgConsultantAuthor Commented:
Thanks, I will not have access to try it until Monday. I will try it then.
0
 
qbjgqbjgConsultantAuthor Commented:
It worked. Thanks.
0
 
qbjgqbjgConsultantAuthor Commented:
Thanks so much. I appreciate your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now