Symptoms

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

Resolution

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

Status

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

References

Learn about the terminology Microsoft uses to describe software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.