In SQL Server 2008 I get the following error:
Cannot specify decimal(5,2) data type (parameter 4) as a substitution
parameter.
Just had a look at the trigger on the table and it looks like the issue has to do with this if
if @SumField7 <> 100
begin
rollback tran
raiserror ('...%d...', 16, 1, @SumField7)
end
The issue is easy to reproduce
You are specifying
%das the Type specification which represents signed integer but passing it adecimal. Maybe this was never type checked in SQL Server 2000.It looks like there is no syntax for
decimalplace holders and you would need to pass a string instead as below.