How can I copy SQL results to different csv worksheets in the same workbook

Hi all,
I'm running a series of select statements using SQLPlus and I want the results for each statement to be copied to different worksheets within the same workbook.
For example, this is what I want: 'select statement 1' is run and spooled to file.csv / worksheet1. When 'select statement 2' is run it is spooled to file.csv / worksheet2. Same csv file but a different worksheet.
Right now my SQL is creating a seperate csv file for each select statement. Here's an example of my SQL:
spool c:\TEMP22\App_Eng1.csv replace
Select A.OBJECTOWNERID||','||B.OBJECTVALUE1
from PSPROJECTITEM B, PSAEAPPLDEFN A
Where B.PROJECTNAME = 'PRJETSC342'
and B.SOURCESTATUS = 2
and B.TARGETSTATUS = 1
and B.OBJECTVALUE2 = ' '
and B.OBJECTTYPE=33
and A.AE_APPLID = B.OBJECTVALUE1;
spool off
Is what I want to accomplish possible? Any ideas? Thanks.

As far as I know you can't have "worksheets" for .csv files. They are simply comma separated values (a flat file). I would suggest that you generate separate csv files for each of your queries and then create a new xls file and import each csv file as a new worksheet.
If you want to automate this process, I recommend you read this:
http://blogs.msdn.com/brian_jones/archive/2005/06/27/433152.aspx

Similar Messages

  • How can i copy my itunes library to another computer in the same household?

    How can I copy my itunes library to another computer in the same houehold?

    If you just want to share the iTunes library with other computers in your house: http://support.apple.com/kb/ht3819
    If you want to move the iTunes library:
    For Windows: http://support.apple.com/kb/ht1364
    For Mac: http://support.apple.com/kb/ht1449

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • How can you use music from a different itunes account on the same iphone

    i bought my iphone 4s and had an apple id.  then changed my apple id, but lost my music on my phone. can i keep music on my phone from another apple id, itunes?

    Paid content purchased from the itunes store is always assigned to a single apple id. You will be unable to use the purchased content on another apple id.
    Next time you change your apple id instead of creating an entire new apple id just change the primary email address to the email you would like to use.
    e.g. current apple id is [email protected] but you want to change it. what you do is:
    - go to appleid.apple.com
    - select manage apple id
    - sign in
    From here what you want to do is change/edit your current primary email which in this case is [email protected] Simply select edit and enter the new email you would like as your apple id. Lastly you will be sent a verification email to verify the email addres and TADA your done.

  • How can i copy a picture that has been installed with the flash player

    how can i copy a picture that has been installed using the flash player

    You can't. You can take a screen cap of it, but the container doesn't allow access to the individual images used in a SWF or FLV.

  • How can I copy my music files to my iPAD. The CDs are currently stored in folders on my PC. Note: Synching via iCLOUD won't work because I have VISTA OS and I need at least Windows 7 or 8.

    How can I copy my music files to my iPAD. The CDs are currently stored in folders on my PC. Note: Synching via iCLOUD won't work because I have VISTA OS and I need at least Windows 7 or 8.

    Hi ladextr,
    Thanks for using Apple Support Communities.  To sync your music to your iPad, first put your music in iTunes as described here:
    Adding music and other content to iTunes
    http://support.apple.com/kb/ht1473
    Adding content on your computer to iTunes
    iTunes helps you add digital audio and video files on your computer directly to your iTunes library. You can add audio files that are in AAC, MP3, WAV, AIFF, Apple Lossless, or Audible.com (.aa) format. If you have unprotected WMA content, iTunes for Windows can convert these files to one of these formats. You can also add video content in QuickTime or MPEG-4 format to iTunes. To learn how to add these files to iTunes follow the steps below.
    Open iTunes
    From the File menu, choose one of the following choices:
    MacAdd to Library
    Windows
    Add File to Library
    Add Folder to Library
    Navigate to and select the file or folder that you want to add
    If iTunes is set to "Copy files to the iTunes Music folder when adding to library," iTunes will copy all content that is added to the iTunes library to the iTunes Music folder. To adjust this setting or change the location of this folder, go to the Advanced tab in iTunes Preferences.
    Once that's done, you can sync the music to your iPad by following this article:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/ph12313
    Cheers,
    - Ari

  • How can i share purchased apps between 2 diff users on the same mac?

    How can I share purchased apps between 2 diff users on the same mac?

    A purchased app is associated with an Apple ID. A user with a different Apple ID cannot use the app unless they also use the same Apple ID.
    I cannot use my wife's apps nor she mine because each were purchased with different Apple IDs.

  • HT201272 I downloaded a TV show directly to my IPAD, how can I download that TV show to other devices on the same account without paying twice?

    Title says it all...
    I downloaded a TV show directly to my IPAD, how can I download that TV show to other devices on the same account without paying twice?

    Whether you can re-download them for free depends upon what country that you are in - tv shows can't be re-downloaded in all countries. If they show in the Purchased tab in the iTunes app on your other devices, or the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes then you can re-download them. Otherwise you can copy them from your iPad to your computer's iTunes via File > Transfer Purchases and then sync them to your other devices.

  • I have two accounts to my computer as administrator. How can I make it so both accounts have access to the same folders and programs? grateful for answers. Martin

    I have two accounts to my computer as administrator. How can I make it so both accounts have access to the same folders and programs? grateful for answers. Martin

    Obvious question: If you want to have access to the same folders andapplications, why have two accounts? The point of different accounts is that you don't have access to the other person's data.
    Any application in the HD/Applications folder is available in all accounts.
    Sharing data between accounts depends on the material being shared. So, if you can provide more details we maybe able to help you better.
    Regards
    TD

  • Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Hello there - how can I share my iTunes library between two users on the same computer? I put the library in a shared folder between both and have selected this library on both as well, but when I update iTunes with music etc it only appears on one?

    Thank you Joe - I tried this but it's only showing a teensy amount of music - the stuff on the second users account as opposed to the giagntic library on the 'main' account. I actually went to a Genius Bar and they said that apple doesn't really want you to share music between accounts - parents don't want to hear their kids music etc. Which seemed strange, but it might be the case sadly   Thanks anyway!

  • HT1660 how can I use one single library for all users on the same laptop?

    how can I use one single library for all users on the same laptop?

    You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
    Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
    What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library.

  • My ipad imessages are coming up on my husband's iphone. Is that because we share an apple id account. How can we have separate apple id's and still share the same music library.

    my ipad imessages are coming up on my husband's iphone. Is that because we share an apple id account. How can we have separate apple id's and still share the same music library.

    The biggest problem I have is with cross texting. My friends send my a imessage on ipad to ipad and it comes up as message on my husband's phone as well as my ipad?
    My friends definitely do not want my husband seeing their texts. (and I dont really need him to see my responses either)
    Also, apple id is based on my email account, how do I create a new apple id without setting up a new email account?

  • How can I open two screens of Adobe digital editions at the same time?

    How can I open two screens of Adobe digital editions at the same time?

    I doubt that you can. Doesn't the Sound prefpane require you to select just one output device?

  • How can i print a full page of mailing labels using the same contact in numerous times/my mailing address

    how can i print out a full sheet of labels using the same contact info numerous times, mailing labels

    Are you using DesignPro from Avery? You should.
    It gives you the option to print individual labels or all the same:

  • How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.

    How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.
    As an example, html widget has white background on iPad, and black on mac. The same goes for interactive widget.
    The MathType text inserted is inserted as a image, and will have the same color when in fullscreen as when not. So I need the textcolor to be the same in both views. Anyone know how to fix this?

    We're still not communicating. This is why I wanted an example .iba.
    Here's a re-creation of my own, going off what you described. You said "all html widgets and all gallery widgets" have this problem. So I inserted a blank HTML widget and a blank Gallery widget, and typed into both. Inserted a MathType equation into both. I don't see any difference when I preview it on my Mac compared to the preview on the iPad. I want to help, but I can't help if I can't duplicate the issue.
    I've attached the screen shots and the .iba file [link to .iba file].
    Feel free to email me directly at bobm at dessci dot com. If you're uncomfortable giving some information here, tell me anything you want in email. I work for the "MathType company", Design Science.

Maybe you are looking for

  • Problem with Type Reference "TYPE' in JCO

    Hi All, I am facing a weard situation when i am creating a custom RFC function module. This FM is called by Java program with JCO. But, if i define the FM parameters with Reference type as 'TYPE', the Java application is not able to get the data. But

  • HotSync Loop Even After Hard Reset

    My Treo755p decidedly to randomly go into a HotSync loop (even though I never set-up the HotSync to my laptop).  I did a hard-restart, lost all the data, and restarted and it still does the HotSync Loop....Am I just screwed...Of course, I just landed

  • Making all blacks rich black in AI?

    Hi there,  this is an Illustrator image and you can see what is rich black and what isn't...  I did go through all files and just select all and adjust the black to rich black, but obviously that didn't work (thankfully the place that I sent it to fo

  • Selecting sample clock frequency for NI 4472

    HelIo: I have been using NI 4472 DSA on a PCI slot for reading accelerations. I was reading the NI 4472 User Manual and under "Selecting your sample clock frequency", it specify two increments (95.37 uS/s for Fs<51.2 kS/s and 190.7 uS/s for Fs>51.2 k

  • SharePoint Designer 2013 crashes when creating a custom workflow...

    I have never had this problem with SPD2010 and the default workflow 2013 templates do not provide the features that I need so creating this workflow using the online UI is not an option. I have uninstalled SPD2013 two times now and I have tried creat