SQL Server XML Data Type and QUOTED_IDENTIFIER
Can anyone provide insight into this? I've developed an import process using an XML data type. After the data is inserted in to a table by the import sProc I run another procedures to update another table with the imported table. The update procedure throws an exception if it is created with SET QUOTED_IDENTIFIER OFF. I'd like to understand why that is happening. Here's the code: DECLARE @xmlRecords XML SET @xmlRecords = (SELECT importedXML FROM importTable WHERE importId = @lastImportId) UPDATE o SET o.ReferralCode = import.refCode FROM ( SELECT records.record.value('(@orderId)[1]', 'INT') AS