dbTalk Databases Forums  

SSIS importing decimal as .00 instead of correct value

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS importing decimal as .00 instead of correct value in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
=?Utf-8?B?QUw=?=
 
Posts: n/a

Default SSIS importing decimal as .00 instead of correct value - 06-01-2006 , 02:27 AM






Hi

I am using SSIS to import data from a flat-file into a SQL server table. One
of the columns contains a decimal quantity which maps to a decimal(18,2) row
in the table.

When I do a preview on the source flat file component it returns the correct
data, i.e.:
45.87, 21.56, ...

However, when I do a preview on the destination SQL server componenet or
actually run the package, I'll end up with the following values:
45.00, 21.00, ...

I've opened the advanced editor on the detination and set the scale to 2 (it
was 0 by default) on the external column details. This made no difference.

I also checked the column type on the flat file source and this is set to
DT_DECIMAL.

I am running out of ideas here. If anybody knows of a way to ensure this
works consistantly, please could you assist.

Many thanks

Al

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.