there is a code
connection.Open(); SqlCommand command = new SqlCommand(); command.Connection = connection; command.CommandText = @"INSERT INTO innXml (inn,xml) VALUES (@inn, @xml)"; command.Parameters.Add("@inn", SqlDbType.NVarChar, 50); command.Parameters.Add("@xml", SqlDbType.Xml); this.Text = openFileDialog1.FileName; inn with the VarChar type everything is normally written to the database. But I don’t understand how to deal with the xml file. It is advisable to give an example of code I only understand c # =)))