When you run a dynamic Insert statement that uses the AddWithValue method, the statement fails, and you receive the following error message:

Error Message SqlCode = -206 error message: @Parameter_Name IS NOT VALID IN THE CONTEXT WHERE IT IS USED


This problem is fixed in Cumulative Update 1 for Host Integration Server 2016.


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


Learn about the terminology Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!