yes, there is
you create procedure that gets ntext parameter, like this
CREATE procedure dbo.sp_InsertFromXML
@strXml nText --XML containing data to be inserted
(...)
I use generated dataadapter, but you can do it on your own as well
this.m_commandCollection[1] = new System.Data.SqlClient.SqlCommand();
this.m_commandCollection[1].Connection = this.Connection;
this.m_commandCollection[1].CommandText = "dbo.sp_InsertFromXML";
this.m_commandCollection[1].CommandType =
System.Data.CommandType.StoredProcedure;
this.m_commandCollection[1].Parameters.Add(new
System.Data.SqlClient.SqlParameter("@RETURN_VALUE",
System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue,
10, 0, null, System.Data.DataRowVersion.Current, false, null, "", "", ""));
this.m_commandCollection[1].Parameters.Add(new
System.Data.SqlClient.SqlParameter("@strXml",
System.Data.SqlDbType.NVarChar, 10000000,
System.Data.ParameterDirection.Input, 0, 0, null,
System.Data.DataRowVersion.Current, false, null, "", "", ""));
Take care about type of the parameter and its max length. (here
System.Data.SqlDbType.NVarChar, 10000000)
HTH
Peter