Results 1 to 4 of 4

Thread: Speed this up? (SQL & a CSV)

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Speed this up? (SQL & a CSV)

    Ive got some SQL that will be dumping large amounts of data out to CSV files for excel to open

    currently I have it looping through each line and dumping it into the CSV. is there a way to get ALL the results from the SQL into one string without having to loop through?

    EX:

    SQL = "Select FName ||','|| LName from Customers"

    [open RS here]
    [Open CSV file]

    Do while No Rs.EOF
    Print #1, rs.fileds(0).value
    loop

    etc.
    etc.

    is there a command or something that has ALL the data without having to use the Do While?

    thnx
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  2. #2
    Fanatic Member RSINGH's Avatar
    Join Date
    May 2001
    Location
    London
    Posts
    522
    Is this from Access, SQL Server or VB?
    The liver is bad. It must be punished.

  3. #3

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    VB reading an Oracle DB.

    using the MDAC 2.6
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    [Bump]



    anyone?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

Posting Permissions

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



Click Here to Expand Forum to Full Width