This is my table
CREATE TABLE tab_customerxml
(
id INT IDENTITY,
xmldata XML
)
and I loaded an xml with insert.
I want to run this simple query
SELECT
xmldata.query('/customer')
FROM
tab_customerxml
WHERE
id = 4;
but I get this error:
Can not run because select the settings of the following SET options are incorrect QUOTED_IDENTIFIER.
I do not know how to solve this problem.
Thank you
idcolumn is of typeint, you should use this notation in yourWHEREclause:WHERE id = 4- don't add those unnecessary single quotes - this makes our'4'a string, which has to be implicitly converted back to anInt..... if it's anint- don't use any single quotes to begin with