Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 274160 - Last Review: March 10, 2004 - Revision: 2.1
FIX: Four-Part Inserts to DB2 Through LinkedServer Fail
This article was previously published under Q274160
If a LinkedServer is configured by using SQL Server to DB2 (OS/390 version 5.1) with the Microsoft OLE DB Provider for DB2 (DB2OLEDB) or the Microsoft ODBC Driver for DB2 (MSDB2OLE), and an INSERT statement is issued by using the four-part syntax similar to the following
INSERT INTO <LinkedServer Name>.<Catalog>.<Owner>.<Table name> VALUES (...)
the following error message may be reported:
[OLE/DB provider returned message: A SQL error has occurred. Please consult the documentation for your specific DB2 version for a description of the associated Native Error and SQL State. SQLSTATE: 24501, SQLCODE: -501]
To resolve this problem, obtain the latest service pack for SNA Server 4.0. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
215838Â
(http://kbalertz.com/Feedback.aspx?kbNumber=215838/EN-US/
)
How to Obtain the Latest SNA Server Version 4.0 Service Pack
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was first corrected in SNA Server 4.0 Service Pack 4.
APPLIES TO
- Microsoft OLE DB Provider for DB2
- Microsoft OLE DB Provider for DB2
- Microsoft ODBC Driver for DB2 4.0 SP2
- Microsoft ODBC Driver for DB2 4.0 SP3
| kbbug kbfix kbsna400presp4fix kbsna400sp4fix KB274160 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate