S
simon
I use my functions to create adapter and fill dataSet:
funkcije.createAdapter("c_CPOSkupaj", False, myParams).Fill(ds,
"brezReklam")
If I use this function another time to fill dataSet with other table, I get
an error message, like that the parameter already exists.
The SqlParameter with ParameterName '@datumZ' is already contained by
another SqlParameterCollection
So, I would like to clear parameters:
adapter.SelectCommand.Parameters.Clear()
How can I do that?
I don't have reference to data adapter, because it's created by function.
Does exists something like:
currentActiveAdapter.SelectCommand.Parameters.Clear ?
Thank you,
Simon
funkcije.createAdapter("c_CPOSkupaj", False, myParams).Fill(ds,
"brezReklam")
If I use this function another time to fill dataSet with other table, I get
an error message, like that the parameter already exists.
The SqlParameter with ParameterName '@datumZ' is already contained by
another SqlParameterCollection
So, I would like to clear parameters:
adapter.SelectCommand.Parameters.Clear()
How can I do that?
I don't have reference to data adapter, because it's created by function.
Does exists something like:
currentActiveAdapter.SelectCommand.Parameters.Clear ?
Thank you,
Simon