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

Re: sql_variant is incompatible with xml by Dimitris

Dimitris
Mon Aug 11 17:31:36 CDT 2008

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

"Dimitris Milonas" <info@randomwalk.gr> wrote in message
news:uru8Ef$%23IHA.4124@TK2MSFTNGP05.phx.gbl...
> 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
>
>