sql server - Converting MS SQL float row, rounding to 2 decimals, may we use MS Access for rounding? -
we have legacy financial application running no longer supported important us.
we have overwritten approximateley 250 rows manually in 2 columns "price" , "selling_price" , application crashes @ point calculates reports.
i believe our mistake not round 2 decimals before writing valuies.
my plan use ms access , update values in row.
old values like:
24.48 6.98 100.10
but wrote values
20.19802 99.42882 108.1302
and believe lets crash when sums on them
could idea make ms access query , overwrite rounded values? or on ms sql tabel level more accurate use sql query modifies using t-sql functions? idea overwrite round(108.1302, 2)
someone lot of ms sql experience?
this row of type float, lenght 53, scale 0, allow null = no.
i not quite sure happens internally , application expecting, because float stored in binary, see cannot same internally stored.
in ms access, connect tables using odbc, same function round(108.1302, 2), lead same result?
how should overwritten, seems safest experience?
if you're using access front end sql server end 2 approaches should same.
you check before updating running conversion select statement in access , running sql pass through
select columna, round(columna, 2) roundeda tablename columna <> round(columna, 2) group columna order columna
and checking match
Comments
Post a Comment