SQL Server数据库中的小数点不计算在内 [英] Decimal point won't count in SQL server database
问题描述
那里,
i我使用ssis包将数据从ms access 2013转移到sql server 2012我遇到的问题是我的访问数据包含点值但是当我的打包转移到sql server它不会计算小数点值。对于我的访问数据库中的ex值就像19.32但是sql数据库中的值只有19才不同使得我的数据错误。
数据类型我在sql表中使用的是数字( 18,0)允许null
访问数据库中的数据类型是数字
我有什么试过:
将sql数据类型更改为十进制(18,0)
引用:我在sql表中使用的数据类型是数字(18,0)允许为空
在数字(18,0)
,0
表示没有小数,因此您的问题,请尝试使用2
hi there,
i am transferring data from ms access 2013 to sql server 2012 using ssis package the problem i am facing is my access data contain point values but when my packaged transferred to sql server it won't count decimal point value . for ex value in my accesss database is like 19.32 but value in sql database is 19 only that different makes my data wrong.
datatype im using in sql table is numeric(18,0) allow null
datatype in access database is number
What I have tried:
change sql data type to decimal(18,0)
Quote:datatype im using in sql table is numeric(18,0) allow null
Innumeric(18,0)
, the0
means no decimal, thus your problem, try with2
.
这篇关于SQL Server数据库中的小数点不计算在内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!