Groups | Blog | Home
all groups > sql server clients > may 2004 >

sql server clients : Weird Linked Server error



Scott McNair
5/21/2004 7:39:21 AM
I just set up a linked server between two SQL Server 2000 boxes. I then
tried a query against a view on the linked server, and I get this error:

Server: Msg 7341, Level 16, State 2, Line 1
Could not get the current row value of column '[linked_server].[database].
[dbo].[view].[FieldName]' from the OLE DB provider 'SQLOLEDB'.
[OLE/DB provider returned message: Requested conversion is not supported.]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' IRowset::GetData returned
0x80040e1d].

The field in question is a varchar(255) field. The view runs fine when I
go to the server correctly, and other views run fine over the linked server
- it's only this view on this link.

Hari Prasad
5/22/2004 9:31:50 AM
Hi,

Have a look into the below link:-

http://support.microsoft.com/default.aspx?scid=kb;en-us;813524

Thanks
Hari
MCDBA





[quoted text, click to view]

Erland Sommarskog
5/23/2004 10:12:27 PM
Scott McNair (scott.mcnair@sfmco.takethispartout.com) writes:
[quoted text, click to view]

What does @@version say on the two boxes?

What is the collation of the column in question? (You can see this with
sp_help on the table.) What is the default collation on the two servers?
(SELECT serverpropery('Collation')). And for that matter what is the
collation of the database you are issuing the SELECT from? (sp_helpdb
tells you.)

--
Erland Sommarskog, SQL Server MVP, sommar@algonet.se

Books Online for SQL Server SP3 at
AddThis Social Bookmark Button