When I execute the below SQL scipt,
SELECT * FROM [SXS1].BOM.DBO.BURULE WHERE MODEL IN('ZE7','ZE7A','ZE7B')
I got error:
Msg 9514, Level 16, State 1, Line 1Xml data type is not supported in distributed queries. Remote object 'SXS1.BOM.DBO.BURULE' has xml column(s).
Solution: Using OPENQUERY like the following SQL scipt.
SELECT SOLDTO,MODEL,CATGRY,SERNUM, Cast(a.XML_Data as XML) as XML_Data,UPDDAT,UPDTIM,CONRF1,CONRF2,CONRF3,CONRF4,CONRF5 FROM OPENQUERY(SXS1,' SELECT SOLDTO,MODEL,CATGRY,SERNUM, Cast(COMPNT as Varchar(max)) as XML_Data, UPDDAT,UPDTIM,CONRF1,CONRF2,CONRF3,CONRF4,CONRF5 FROM BOM.DBO.BURULE WHERE MODEL IN(''ZE7'',''ZE7A'',''ZE7B'') ' ) a