Connecting Tech Pros Worldwide Forums | Help | Site Map

DTS Rounding problem

GeorgeŽ
Guest
 
Posts: n/a
#1: Feb 21 '06
I have a problem...
Data transformation rounds or truncate decimals!
I have an ODBC source in witch is a table with float numbers (ODBC Driver
publish it as float).
If I build a query form access or from excel with Query Analizer, I see all
decimal places, but when I try to insert data using DTS, float numbers will
be converted to its integer values.
A "select * from table", with table ODBC table, gives integer value when
runned from DTS to transform data from ODBC to MS-SQL Server table, and
gives float values from Access or other tools.
Where I can fix my problem?
Thanks.
Giorgio



SQL
Guest
 
Posts: n/a
#2: Feb 21 '06

re: DTS Rounding problem


put convert(float,field) around your fields in the insert
example
declare @i int
select @i =1
select convert(float,@i),@i


http://sqlservercode.blogspot.com/

Closed Thread


Similar Microsoft SQL Server bytes