Does OpenXML automatically COMMITs the records
ie., if i am entering 20 records in one go, when will COMMIT occur.
Is it after each RECORD or after 20 records.
My problem is..
INSERT INTO TABLEAA (ID, NAME)
SELECT (SELECT MAX(ID) + 1 FROM TABLEAA), NAME FROM OPENXML(@ptr, '/RECORDS/RECORD', 2) WITH (NAME VARCHAR(30))
Only one ROW is affected...
The error thrown is Primary KEY Violated.
i want to do it in Single Querry... is it possible...
THNX