SQL Server – error when creating stored procedure

declare @Colcunt int;
Select @Colcunt  = count(*) 
from tbl_Calibration_Transaction 
where CardId = @CardId and ScalingMachine= @ScalingMachine 

IF (@Colcunt = 0 ) BEGIN INSERT INTO tbl_Calibration_Transaction ...

Leave a Comment