I've problem when I write the result of a query into a file.
string file = @"C:UsersjakubDesktopplik.pdk";
FileStream fs = new FileStream(file, FileMode.OpenOrCreate, FileAccess.ReadWrite);
string connection = "DSN=PervasiveData;Database=BAZA1";
string query1 = "SELECT skrot FROM KONTRAHENCI WHERE id = 32";
OdbcConnection MyConn = new OdbcConnection(connection);
OdbcCommand MyCommand = new OdbcCommand(query1, MyConn);
And now I must write to file my result of query.
How can I do this?
Aucun commentaire:
Enregistrer un commentaire