Reproduced in the example project attached.
as the decimal increases so does the precision:
exec sp_executesql N'UPDATE [TestDB].[dbo].[FactPlayerGame] SET [PlayCount]=([TestDB].[dbo].[FactPlayerGame].[PlayCount] + @p2), [Stake]=([TestDB].[dbo].[FactPlayerGame].[Stake] + @p4) WHERE ( ( ( ( ( ( [TestDB].[dbo].[FactPlayerGame].[DateId] = @p5 AND [TestDB].[dbo].[FactPlayerGame].[BrandId] = @p6) AND [TestDB].[dbo].[FactPlayerGame].[PlayerId] = @p7) AND [TestDB].[dbo].[FactPlayerGame].[BrandGameId] = @p8) AND [TestDB].[dbo].[FactPlayerGame].[ChannelTypeId] = @p9)))',N'@p2 int,@p4 decimal(2,2),@p5 bigint,@p6 uniqueidentifier,@p7 uniqueidentifier,@p8 uniqueidentifier,@p9 tinyint',@p2=1,@p4=0,@p5=1,@p6='FB5A6A0A-120E-4C59-A5F4-9C778D6CCF81',@p7='5E9A9853-1911-4920-9F0E-A05D1FE85E02',@p8='71983B2A-F684-42A2-B420-3AE65B4653E8',@p9=1
@p4=0
@p4 decimal(2,2)
exec sp_executesql N'UPDATE [TestDB].[dbo].[FactPlayerGame] SET [PlayCount]=([TestDB].[dbo].[FactPlayerGame].[PlayCount] + @p2), [Stake]=([TestDB].[dbo].[FactPlayerGame].[Stake] + @p4) WHERE ( ( ( ( ( ( [TestDB].[dbo].[FactPlayerGame].[DateId] = @p5 AND [TestDB].[dbo].[FactPlayerGame].[BrandId] = @p6) AND [TestDB].[dbo].[FactPlayerGame].[PlayerId] = @p7) AND [TestDB].[dbo].[FactPlayerGame].[BrandGameId] = @p8) AND [TestDB].[dbo].[FactPlayerGame].[ChannelTypeId] = @p9)))',N'@p2 int,@p4 decimal(5,2),@p5 bigint,@p6 uniqueidentifier,@p7 uniqueidentifier,@p8 uniqueidentifier,@p9 tinyint',@p2=1,@p4=294.00,@p5=1,@p6='FB5A6A0A-120E-4C59-A5F4-9C778D6CCF81',@p7='5E9A9853-1911-4920-9F0E-A05D1FE85E02',@p8='71983B2A-F684-42A2-B420-3AE65B4653E8',@p9=1
@p4=294.00
,@p4 decimal(5,2)
Attachments
Filename |
File size |
Added on |
Approval |
Projects.zip
|
66,383 |
09-Apr-2020 16:56.20 |
Approved |