Microsoft KB Archive/235213

From BetaArchive Wiki
Knowledge Base


BUG: Four-part Name Linked Server Queries Fail Against DB2 for OS/390

Article ID: 235213

Article Last Modified on 3/10/2004



APPLIES TO

  • Microsoft OLE DB Provider for DB2



This article was previously published under Q235213


SYMPTOMS

When you run a four-part name query such as the following

SELECT * FROM LinkedServer name.Catalog.Schema name.Table name


using the Microsoft OLE DB Provider for DB2 from a linked server to DB2 on OS/390, the following error might be reported by the SQL Server:

Server: Msg 7314, Level 16, State 1, Line 1
OLE DB provider 'DB2OLEDB' does not contain table 'Schema name.Table name'.

RESOLUTION

To resolve this problem, obtain the latest service pack for SNA Server version 4.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

215838 How to Obtain the Latest SNA Server Version 4.0 Service Pack




WORKAROUND

Use pass-through queries with OPENQUERY or OPENROWSET. For examples of linked server queries to DB2 using OPENQUERY or OPENROWSET, please refer to the following article in the Microsoft Knowledge Base:

222937 Creating a Linked Server to DB2 using Microsoft OLE DB Provider for DB2


STATUS

Microsoft has confirmed that this is a problem in Microsoft SNA Server version 4.0 Service Pack 2. This problem was first corrected in SNA Server version 4.0 Service Pack 3.


Additional query words: Mainframe ODBC MSDB2OLE MVS DB2/400

Keywords: kbbug kbfix kbsna400sp3fix kbqfe KB235213