Skip to content

Writing to a file from Database

Sanjeev Shrestha

Asked Dec 7, 2006, 2:58 PM EST1 answer
Share
LinkedInX

Hi,

I am writing data from Employees Table(Northwind Database) to a TextFile.
Now, I want to write data from Customers Table to the SAME TextFile.  In the text file, Customer Table information shoule be after Northwind information.

How do I do that?

I could write Northwind data to a file. But when I try to write Customer Table information on the same Text File, it writes only customer information deleting the Northwind information.

Please help........

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Are you trying to open the file again or just trying to write both the tables in one go.
    If you are opening the file the second time for writing, make sure you are opening in append mode.
    0