string xmlString = string.Empty; SqlConnection cn = new SqlConnection(connectionString); SqlCommand cmd = new SqlCommand(stringName, cn); SqlDataReader dr; cmd.ExecuteNonQuery(); xmlString += "" ; xmlString += " "; while (dr.Read()) { xmlString += " "; StreamWriter streamWriter = File.CreateText("D:\ampl.xml"); streamWriter.WriteLine(xmlString); streamWriter.Close();"; } xmlString += " "; xmlString += dr[0].ToString(); xmlString += " "; xmlString += dr[1].ToString(); xmlString += "
Wednesday, March 17, 2010
reating XML file using StreamWriter
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
SQL Server has never been short of ways to read from and write to files and it is always better to use the standard techniques provided b...
-
In this article we will look at the basics of Angular.Js. This is the first part of an article series. The main objective of this series i...