Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: "SQLCODE -290, invalid description" error in the Managed Provider for DB2 when you use named parameters


View products that this article applies to.

Symptoms

When you run a parameterized query by using the Managed Provider for DB2 that is included in Microsoft Host Integration Server 2013, the query may fail, and you receive the following error message:

SQLCODE -290, invalid description

↑ Back to the top


Cause

This problem may occur when you are using named parameters and use one of the named parameters two times in your query. The following code sample shows this problem:

cm.CommandText = "SELECT * from TABLE WHERE COL1 = @COL and COL2 = @COL";
cm.Parameters.AddWithValue("@COL", "AAA");

↑ Back to the top


Resolution

Cumulative update information

The fix that resolves this problem is included in Cumulative Update 1 for Host Integration Server 2013.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbqfe, kbfix, kbnotautohotfix, kbexpertiseinter, kbbug, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2926573
Revision : 1
Created on : 1/7/2017
Published on : 7/21/2014
Exists online : False
Views : 287