Saving data to text file

  • Thread starter Thread starter Carl Howarth
  • Start date Start date
C

Carl Howarth

Hi,

Using ADO I could save a recordset out as text... Is there an equivalent for
the sqldatareader?

Cheers, Carl
 
Hi Carl,

For a sqldatareader, you could either:

1. cycle through the rows and write them to a text file manually.
2. add the data to a dataset and then call its method to save it as xml (if
you just want to persist the set of rows in a text file you could re-read
them from).

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top