Can't solve “Sqlparameter is already contained by another SqlparameterCollection”

后端 未结 2 1995
不思量自难忘°
不思量自难忘° 2021-01-23 07:22

I am using 2 threads (from same class) in a windows service. I always getting the same error message:

\"The SqlParameter is already contained by another SqlParam         


        
2条回答
  •  野性不改
    2021-01-23 08:14

    Dont share the same sql objects between 2 thread. Use the pool collection by SQL

提交回复
热议问题