Have following sp. Return value is always 1 and never hits 2. Can anyone see any problems?@UserId varchar(10),@GroupName varchar(20),@ApplicationName varchar(50),@FullRights bit,@ReadRights bit,@WriteRights bit,@ModifyRights bit,@DeleteRights bit,@Type varchar(6), @Return int outputas set nocount onIF @Type = 'Update'BEGINIF (EXISTS(SELECT 1 FROM Vecellio.dbo.AuthorityTableWHERE UserId = @UserId and GroupName = @GroupName and ApplicationName = @ApplicationName))BEGINSET @return = 1UPDATE Vecellio.dbo.AuthorityTable SET FullRights = @FullRights, ReadRights = @ReadRights, WriteRights = @WriteRights, ModifyRights = @ModifyRights, DeleteRights = @DeleteRights WHERE UserId = @UserId and GroupName = @GroupName and ApplicationName = @ApplicationNameSET @Return = 2ENDEND