-----2022-05-27------------------------ update DataInspection set BatchId=Id where BatchId is null update QCChallenge set Code=ChallengeCode update QCChallenge set ChallengeCode='Q'+ RIGHT('00000'+CAST( Code AS nvarchar(50)),5);