... private void sampleXmlButton_Click(object sender, System.EventArgs e) { DataSet ds = new DataSet( ); // Fill the Categories table and add it to the DataSet. SqlDataAdapter da = new SqlDataAdapter("SELECT ... Team LiB ] Recipe 8. Storing XML to a Database Field Problem You need to store XML to a field in a database. Solution Store the contents of the InnerXml of the XmlDocument to the database. ... da.SelectCommand.Connection); da.UpdateCommand.CommandType = CommandType.Text; da.UpdateCommand.Parameters.Add("@Id", SqlDbType.Int, 0, "Id"); da.UpdateCommand.Parameters.Add("@XmlField",...