Results 1 to 4 of 4

Thread: Query output to a File

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Query output to a File

    Hi,

    Can someone help me to ge the output of a sql statment to a excel file directly instate of using the export fuction.

    thanks in advance.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Use bcp, books online has syntax and sample code.

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    thank for the reply.
    I very thankful if could forward the link.
    thanks

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Books online is installed on sql server and client machine by default.

Posting Permissions

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