No More Solutions

You can find a lot of debugging and deploying problems while developing applications in .NET and Visual Basic here. There are also some querying tips in SQL and typical source codes which might be useful shared here.

XML Data Type is Not Supported in Distributed Queries

Error: Xml data type is not supported in distributed queries. Remote object '<ServerIP>\<ServerInstance>.<DatabaseName>.<Owner>.<TableName>' has xml column(s).

This error occurs when trying to select data from table on different server (using linked server) containing XML data type (even though the column with XML data type is not selected).

Create a view on the remote server, and then select the view instead of directly selecting from the table containing XML data type.

<ServerInstance> =
<DatabaseName> = DB1
<Owner> = dbo
<TableName> = Table1

Instead of using:
SELECT * FROM [].dbo.Table1

Create a view on the remote server:
SELECT * FROM dbo.Table1

And call the view:
SELECT * FROM [].dbo.vGetTable1
Bookmark and Share