V
V
Vetal16042019-04-10 18:37:56
SQL
Vetal1604, 2019-04-10 18:37:56

How to output query result to file via C#?

SqlCommand command = new SqlCommand("SELECT Id,Name,Price FROM [Products] WHERE [Id][email protected] ", sqlConnection);

while (await sqlReader.ReadAsync())
                    {
                        listBox3.Items.Add(Convert.ToString(sqlReader["id"]) + "  " + Convert.ToString(sqlReader["Name"]) + "  " + (1 + ((readSearch1 - f) * 1.2) / f)/*Convert.ToString( met(readSearch1))*/);
                       
                    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2019-04-10
kuzmin @sergueik

"writing text to a file in c#" - www.java2s.com/Tutorials/CSharp/System.IO/File/C_F... ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question