Could you tell me where the problem of following code is?Case @DMLType WHEN 'I' THEN BEGIN --Insert the new row INSERT INTO SQL2005_Testdb1_Person -- SELECT stmt using OPENXML rowset provider SELECT * FROM OPENXML (@idoc, '/t',2) WITH (ID int, FirstName varchar(50) , LastName varchar(50) , DateOfBirth datetime ) END WHEN 'U' THEN BEGIN --Update the modified row --UPDATE SQL2005_Testdb1_Person SET ( END ELSE DELETE FROM SQL2005_Testdb1_Person WHERE ID = @PK END --end case
"@DMLType char(1)" is an input parameter to a stored procedure