Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Documentation is misleading

$
0
0
When working with the numeric data type in MSSQL 2012:1. Have a column 'value' in table 'TestTable' of type numeric(18,14)2. Perform "insert into TestTable (value) values (12345.6789)3. Get "Arithmetic overflow error converting numeric to data type numeric." error.It appears that this is because there are not enough decimal places to the LEFT of the decimal point (18-14 = 4, 12345 > 4 decimal places).The documentation indicates that the SCALE value is the MAXIMUM number of digits that can be

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>