Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

狀況

當您可以針對 DB2 隨附於 Microsoft 主機整合伺服器 2013年中使用管理提供者,以執行參數型的查詢時,查詢,可能會失敗,並且您會收到下列錯誤訊息︰

SQLCODE-290,無效的描述

原因

當您使用具名參數,並使用其中一個具名參數兩次查詢中時,可能會發生這個問題。下列程式碼範例會顯示這個問題︰

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


解決方案

累積更新資訊

主機整合伺服器 2013年是累積的更新 1中包含的修正程式可解決這個問題。

狀態

Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×