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年中使用管理提供者的應用程式。當您嘗試將不會指定MsDb2Type值的參數傳遞時,或使用不正確的值時,不正確的結果會傳遞至 DB2 資料表中。

注意例如,下列程式碼範例會發生這個問題︰

Dim Test As Decimal = 12.1234param.MsDb2Type = MsDb2Type.Int
param.Value = Test
MyCommand.Parameters.Add(param)


注意即使 DB2 管理提供者所指定的不正確的資料型別,值會傳遞至 DB2 資料表中。

原因

之所以發生這個問題,是因為 DB2 的管理提供者並不會執行驗證,不論正確或不正確,是否輸入值。也不會防止不正確的值傳遞至 DB2。

解決方案

累積更新資訊

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

狀態

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!

×