G
Guest
I'm not really sure whether this is the correct group but here we go.
The SQL 2005 supports a new datatype called xml.
If I create a table adapter in Visual Studio 2005 for the standard
insert/update/delete/select methods the table adapter generates a dataset
with the dataset field value of string for the SQL datavalue of Xml.
If I look at the properties there is no Xml option so I guess this is the
closest match.
If I then try to insert an Xml document into the database using the table
adapter it appears to generate an error stating that it cant convert xml to
string.
I havnt provided a String so assume this must be within the table adapter
itself ie attempting to take my Xml document and convert it into a string in
order to insert in to the SQL Xml field.
This being the case is it possible to insert Xml data into an SQL Xml field
using a table adapter and if so how is it done.
The SQL 2005 supports a new datatype called xml.
If I create a table adapter in Visual Studio 2005 for the standard
insert/update/delete/select methods the table adapter generates a dataset
with the dataset field value of string for the SQL datavalue of Xml.
If I look at the properties there is no Xml option so I guess this is the
closest match.
If I then try to insert an Xml document into the database using the table
adapter it appears to generate an error stating that it cant convert xml to
string.
I havnt provided a String so assume this must be within the table adapter
itself ie attempting to take my Xml document and convert it into a string in
order to insert in to the SQL Xml field.
This being the case is it possible to insert Xml data into an SQL Xml field
using a table adapter and if so how is it done.