I have two SQL servers (running SQL Server 2008) named DATA01 and DATA02 . DATA02 has a LINK linked server definition that points to DATA01 , with the appropriate user mapping setting. DATA01 has a MyDatabase containing these two tables:
CREATE TABLE T_A ( Id int ) CREATE TABLE T_B ( Id int, Stuff xml )
When I run this command from DATA02 , I get the data as expected:
SELECT Id FROM LINK.MyDatabase.dbo.T_A;
However, when I run this command from DATA02 , I get an error message:
SELECT Id, Stuff FROM LINK.MyDatabase.dbo.T_B;
Mistake
The Xml data type is not supported in distributed requests. The remote object "DATA02.MyDatabase.dbo.T_B" has an xml column.
And oddly enough, this command:
SELECT Id FROM LINK.MyDatabase.dbo.T_B;
also gives the same error, although I am not a SELECT xml column! What's happening?
xml sql-server linked-server
AakashM Jan 21 '13 at 15:36 2013-01-21 15:36
source share