I have an error being thrown by SQL Server Management Studio when running this code:
declare @percentage numeric(3,2)
set @percentage = cast(15 as numeric(3,2))
but when I change numeric declaration to
declare @percentage numeric(4,2)
set @percentage = cast(15 as numeric(4,2))
everything goes fine.
Is there a limitation for numeric data type?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…