sql_variant is incompatible with xml

D

Dimitris Milonas

Hello,

I have a table. One of it's fields is of Xml type. I'm using a Stored
Procedure in order to perform the update on this table. When I'm trying to
set the xml field in the "updating" event, I'm getting the following error
"operand type clash: sql_variant is incompatible with xml". The code that
I'm using in the "updating" event is something like:
e.Command.Parameters["@MyXmlField"].Value = null;
Does anybody know how to correct the error?

Regards
Dimitris
 
D

Dimitris Milonas

Hello,

I forgot to mention that I'm using a SqlDataSource to access the table and
the "updating" event belongs to the SqlDataSource.

Regards
Dimitris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top