Home > Archive > Microsoft SQL Server forum > February 2006 > DTS Rounding problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DTS Rounding problem
GeorgeŽ

2006-02-21, 7:23 am

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

2006-02-21, 9:23 am

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/

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com