Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    12

    Question Unanswered: Automate query output to .txt or .csv file

    Good day!

    What is the easiest most efficient way to output a query to a .txt or .csv?

    JP

  2. #2
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    1,126
    This depends on you OS (MS-Windows or UNIX or ...) and your DBMS (DB2 or Oracle or ...)
    Essentially, in all cases, you may do something like
    Code:
     DBMS  "SELECT * FROM table" > file.txt
    where "DBMS" is the command to run the DBMS SQL interpreter from the command line.

  3. #3
    Join Date
    Apr 2004
    Posts
    12
    Yes, I should probably included that info!

    Windows Server 2003
    SQL 2000

    Thanks for the help!

    JP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •