I dont want to add a new parameter to the stored procedure that get the name of the xml file to store it in a varchar field, because other customers use it.so, if I send xml file content to the stored procedure:XmlTextReader reader = new XmlTextReader (fi.FullName ); reader.WhitespaceHandling = WhitespaceHandling.None; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(reader); reader.Close(); SqlParameter param = new SqlParameter("@XML", SqlDbType.Xml); param.Value = new SqlXml(new XmlTextReader(xmlDoc.InnerXml.ToString ().Trim() , XmlNodeType.Document, null)); but i stell need the name of the xml file to store it in informative field in my DB.. so how can I extract it from the parameter inside the stored procedure?!hope that I was clear.quote:
Originally posted by Peso
What do you mean?
N 56°04'39.26"E 12°55'05.63"