SQL Developer: How do I copy data with Column Headers from the output grid?

Hello,
I am using Version 2.1.1.64.
I run a SQL query, I get the results grid in the "Query Result" window down below. Say I get 10 rows returned, with 5 columns.
I want to Copy this entire grid, plus the column headers/names, to the clipboard. So I can paste it under the original query to document the results of that query.
I can't find any way to do this. I can copy/paste the results grid, but it doesn't copy the headers.
The only way I see to do it is to go through numerous steps to Export to a TXT file, then paste that. Unfortunately, that is a lot of wasted steps if I need to do this over and over, plus, the output gets pasted in an ugly format with double quotes, etc.
It seems like the simplest functionality is to copy/paste the entire results grid, and of course you might the headers. Why is this so complicated/impossible to do?
(I believe Toad has the same problem. DBArtisan allows you to copy/paste the entire results, plus headers, though.)
Any assistance would be appreciated!
Thanks,
John

Ah, ok...
I had tried that before, and it didn't work, it seemed to copy the path of filename I was using. But I think that was because I had clicked on a Column Header first, and it had asked me if I wanted to filter. I think then it lost track that it was in the grid. It's a little flukey.
What I did now was to click on an individual cell in the output, then hit CTRL-A to select all, then hit SHIFT-CTRL-C. That gives me exactly what I want.
Thanks very much for your quick solution, I appreciate it!
John

Similar Messages

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • How do you copy and paste a photo from the internet without a mouse?

    Does anyone know how to copy and paste a photo from the internet without a mouse?  I would appreciate a response asap.  Thanks.

    http://support.apple.com/kb/HT2477
    Pointing, clicking, and getting around
    When you move your mouse or finger on a trackpad, you control a pointer (also known as a cursor) that moves across your screen. The pointer allows you to select and interact with the various items on your screen, including selecting files, clicking buttons, dragging sliders, and so on. Sometimes the pointer may look like a hand, a crosshair, an I-beam, or another icon, depending on what you're doing and the application you're using.
    For example, if you're using Safari to view this webpage and move the pointer across it, notice that it turns into an I-beam when you move it over text or a text field. When you see this, you can usually interact with the text or field below it. When you move the pointer over a button or link, the pointer turns into a hand, letting you know that you can click on the item.
    Depending on what you're doing and what application you're using, your pointer (far left) may change appearances
    Clicking your mouse button or trackpad button once allows you to select the item that your pointer is on. In other words, if your pointer is on a file's icon, clicking once will select it. If the pointer is on a button or link, clicking once will activate it. If your pointer is on a text field, clicking once highlights the field and allows you to start typing text in it.
    If you want to open a file, folder, or application, click your mouse button or trackpad twice. This is known as double-clicking. In general, you'll need to double-click items if you want to open them from a Finder window or the desktop. The exception to this is opening stuff from the Dock—just click once on an icon in the Dock to open it.

  • How to make an appointment with a contact from the address book directly to iCal

    What is the easiest way to make an appointment with a contact from the address book. My idea is that once you identify a contact down the bottom where it has Text message Share contact, add to favorites it would be nice if it had make appointment in iCal. The open up iCal to todays date and go from there with all the relevant details?

    In the Print dialogue box select Lists in the Style drop down box.

  • Just downloaded SQL Developer today, need help copy data

    How do I import data from Oracle XE to an Oracle server by using SQL Developer?

    Probably a better option would be use the export and import utilities provided with the database.
    From within SQL*Developer you can export data as either a csv file (and then use sql*loader to load it), or as insert statements which you can run in in either sql*developer or sql*plus.
    To export data in sql*developer, right-click on a table or a result set.
    Search for Export Table Data in the help system

  • How to create tree table with column headers

    hi,
    when i drag and drop a view object onto my .jspx page as a af: tree table ,
    am not able to get the column header of each column. all the columns in the table are just clubbed together not separated as in af:table.
    can anyone say how the column headers are created for the columns when we drop a view object as a tree table?

    Hi,
    this is not an option with the treeTable as it gets rendered by default when dragging and dropping the collection to the page. I haven't tried it, but I think you will have to check which node is getting rendered and based on this information add your own row layout . Sounds like a bit of coding work
    Frank

  • How can I copy Lion on a DVD from the appstore ?

    I've buyed Lion on tha Appstore. And now, I need to copy it on a DVD. How Can I Do ? Where can I download the OS on my Mac ?

    flacaille wrote:
    I've buyed Lion on tha Appstore. And now, I need to copy it on a DVD. How Can I Do ? Where can I download the OS on my Mac ?
    http://www.macworld.com/article/1161069/make_a_bootable_lion_installer.html
    Pete

  • Does anyone know how I can copy photo and video files from the Photo's app on my Macbook, to a USB stick or other external back-up?

    I've updated the software on my Macbook to the most recent version; regretting it now; and iPhoto has now become the Photo's app.
    The problem is I can no longer back up my photo and video files taken on my phone, saved to my mac, by copying them and saving them on a USB stick or other external hard drive.
    I could easily do this with iPhoto, but now Photos app does not let me copy the files when I select them.
    Does anyone know if there's a way to save, copy or back-up my photo's and video files: prefreably one that doesn't involve iCloud, as I don't feel like paying for more storage; there must be some way to access those photos/videos from my iPhone to save on another source?

    The problem is I can no longer back up my photo and video files taken on my phone, saved to my mac, by copying them and saving them on a USB stick or other external hard drive.
    Select the photos and videos in Photos and use the command "File > Export"  and select a folder on your USB stick to save the photos to.

  • How to get a data element's value from the data file while bursting

    For faxing bursted data into rightafx, I need to first burst my invoice data file into numerous pdf files in the filesystem, and then use the rightfax function of the delivery manager to send those files to different faxes. Integration with rightfax is not available in the bursting engine.
    While bursting the xml data file based on invoice number, I need to get the fax number that is different for each invoice in a java variable so that I can use it to pass fax number information to rightfax. Is it possible?
    Thanks.

    Can any one help?
    Edited by: MTW on Apr 16, 2010 6:58 AM

  • How do I copy and paste an image form the internet to Keynote. I have done this successfully in the past by selecting copy and then paste by using the right click function and now am unable to do so. I am thinking it is an outdate OS problem...not sure.

    How do I copy and paste an image from the internet to Keynote. I have done so successfully in the paste by using the copy and paste right click functions but am unable to do so now. That was about a year ago that I attempted that I was able to do this. Thank you for your help.

    Some images are copy-protected.
    If all else fails, you can make a screen shot of the image: 
    With the image visible in your browser, press CMD-Shift-4 and your cursor will change to crosshairs.
    Position the cross hairs at one of the corners of what you want to copy and drag to the opposite corner, then release the mouse. An copy of the image will be saved to your desktop.
    You can now edit and use this image.
    Be sure to respect copyrights.
    Message was edited by: bwfromspring hill

  • SQL to FILE interface with column headers

    Hi All,
    I have designed an interface to extract the data from Oracle to flat file (.txt file ) .
    1) I am getting the column headers in the output file(. txt file) but I don't want to see any column headers
    2) While creating the data source in data Model If I give any column type as date I am getting null value in the output file, but If I give column type as string for date filed I am able to see the data in output file.
    Thanks ,
    Patel.

    Hi Patel
    1) I am getting the column headers in the output file(. txt file) but I don't want to see any column headers
    You can to the flow properties and set GENERATE_HEADER = flase.
    -- step by step approach on how to load data from an oracle table to flat file
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_table-to-flatfile/odi_project_table-to-flatfile.htm
    http://odiexperts.com/oracle-to-flat-file/
    2) While creating the data source in data Model If I give any column type as date I am getting null value in the output file, but If I give column type as string for date filed I am able to see the data in output file.
    I do not think you can use a Date Datatype while loading into flat file. You can go with string or number/integer (if date does not have any special characters. You can use a conversion function here to convert existing Date datatype as per your requirements , but make sure you select " on source or on staging")
    Regards
    kk

  • How to have a table with table headers eventhough table is into Scrollpane?

    How to have a table with table headers eventhough the table is placed in the scrollpane?
    This is because when i place my jtable into the scrollpane the table headers aren't showed.
    I have read that i need to override:
    configureEnclosingScrollPane() from jtable.....and with:
    JViewport viewport = scrollPane.getViewport();
    viewport.getView()
    i think that i can reach it....but i don't know how to integrate it...to reach to have my jtable into a jscrollpane wiht the same headers of my jtable......
    Could somebody help me please?......
    Thanks,
    Mary

    How to have a table with table headers eventhough the table is placed in the scrollpane?
    This is because when i place my jtable into the scrollpane the table headers aren't showed.
    I have read that i need to override:
    configureEnclosingScrollPane() from jtable.....and with:
    JViewport viewport = scrollPane.getViewport();
    viewport.getView()
    i think that i can reach it....but i don't know how to integrate it...to reach to have my jtable into a jscrollpane wiht the same headers of my jtable......
    Could somebody help me please?......
    Thanks,
    Mary

  • SQL developer to debug a cursor data ?

    In the SQL Developer, how to debug a cursor ? In the debug mode, can I see its data what the cursor points to ?
    Thanks
    CURSOR C_EMP (DEPT_NUM_1  NUMBER)
        IS
        SELECT E.EMPLOYEE_ID, E.LAST_NAME, D.DEPARTMENT_NAME
        FROM EMPLOYEES E JOIN DEPARTMENTS D on(D.DEPARTMENT_ID = E.DEPARTMENT_ID)
        WHERE 
        D.DEPARTMENT_ID = DEPT_NUM_1;

    >
    In the SQL Developer, how to debug a cursor ? In the debug mode, can I see its data what the cursor points to ?
    CURSOR C_EMP (DEPT_NUM_1 NUMBER)
    IS
    SELECT E.EMPLOYEE_ID, E.LAST_NAME, D.DEPARTMENT_NAME
    FROM EMPLOYEES E JOIN DEPARTMENTS D on(D.DEPARTMENT_ID = E.DEPARTMENT_ID)
    WHERE
    D.DEPARTMENT_ID = DEPT_NUM_1;
    >
    A cursor is a definition and not executable code so there is nothing to 'debug'. That would be analogous to saying you want to 'debug' a query. What does that even mean?
    What do you mean by 'see its data what the cursor points to'?
    Do you mean see the query underlying the cursor? Then no - you cannot do that.
    You can fetch the data or, using dynamic sql you could describe the result set to see what column names and datatypes will be returned but there would be no information about where that data actually came from.
    This question isn't really a sql developer question but when you have one of those you should post in the sql developer forum at
    SQL Developer

  • How can I copy songs with metadata (added in iTunes) from my PC to my new iMac?

    I have iTunes 12.0.1 on my Windows PC. I'm about to get a new iMac (hooray!) and I'm beginning the process of transferring everything on my PC to my Mac. I've got all the documents, pictures, files, etc. covered, but now I have to make a copy of all of my music.
    Most of the music in my iTunes library is not bought through the iTunes Store (I download most of my songs from the Internet). Then, after saving the downloaded song to my computer, I go into iTunes on my computer and add the song. I also add metadata like artist, album, genre, album artwork, etc. to the song in iTunes. What concerns me is that only the songs in iTunes have this metadata: the original downloaded files I saved onto my computer don't have any metadata.
    I really don't want to have to go through the long and tedious process of adding artist/album names, genre, etc. to every single song in my iTunes library on my new iMac. How can I copy songs with metadata (added in iTunes) from my PC to my new iMac?
    Thank you so much for any help!

    Hello! I'd like to learn more about Home Sharing. To do this, would both my PC (which I hope to get rid of) and my new iMac need to be plugged in?
    Also, after Home Sharing with the old PC is initiated, I understand that all my songs would appear on my iMac. Is there a way to copy all of these (with album artwork, name, artist, etc.) directly to the iMac's hard drive and then disconnect home sharing so I can get rid of my PC?
    Thank you!

  • How to validate a date with time

    Hi All,
    How can I validate date with time?
    Here is my code:
    var tempDate:Date = new Date();
    if (tempDate < '09/18/2012 7:30:00 AM'){
         doSomething
    Thanks in advanced

    I think i got it to work.
    var tempDate:Date = new Date();
    var oldDate:Date = new Date('09/18/2012 7:30:00 AM');
    if ( Number(tempDate) < Number(oldDate) ){
         doSomething
    Best,

Maybe you are looking for

  • Output log to application log in application server

    Hi Guys, I am pretty new on J2EE, I created a web application and deployed it on to the oracle application server. I found out that I can view the log file(application.log) for that particular web application on the application control page. What I w

  • Raw Device Validation Check for Name Failed..

    Hi all, I have installed Oracle Clusterware 10.2.0.4 and Oracle database software 10.2.0.4 on Solaris SPARC 10 and i using a NAS storage for the same And when i try to create a database using DBCA i got the following error. Raw Device Validation Chec

  • How to load data to a SQL Server 2000 from a text file ( fixed / delimited)

    I am a navie user to ODI, just installed some time back. And I wanted to load text data ina file ( fixed length/ delimited ) to SQL server 2000 database. Iam intrested to know the steps I need to take to achieve this. I mean for example first creatin

  • JATO 1.2.1 source code

    Dears. We are evaluating S1AF for production use. It looks good, but i miss some comprehensive documentation! "Release notes", "Overview", "Getting started" nor "Installation guide" is not enough. Is a full documentation available for download? It ha

  • Robotics/ DaNI robot ( NIrobotics starter kit 2.0)

    Dear All I would like to use A * algorithm to find the shotest path in indoor environment by DanI robot  In addition, the robot includes PING ultrasonic sensor .  My question is any document or advices for avoiding obstacles by using ultrasonic senso