How to export structure DB to text file

I want to export structure DB to text file for report to my manager.
example: any objects(tables, indexs, constraints) and He need DDL command ("create table" command etc.)
How to do this?

Varies by database version.
I would investigate DBMS_METADATA as described in the PL/SQL Packages and Types Reference manual and demoed in the Utilities guide at http://www.oracle.com/pls/db102/portal.portal_db?selected=3

Similar Messages

  • How to export waveform data into text file

    Hi..
        I am trying to export my waveform graph data into write spreadsheet file. When running the proram, I am getting graph values (values in a matrix) when checking with the probe. But once I save it to a text file, the values recorded are just zeros. I have attached the text file along with this. Could anyone please tell me why the graph data is not recorded in the spreadsheet? I have extracted the Y component of the graph and then wired it to the write to spreadsheet function. It seems like the labview is getting the data.. but now the problem is how to get the data out of labview?

    Please find the attched image of the whole program. I tried running the program after removing the array to matrix but still I am not able to export the graph values to spreadsheet. The program as a whole is working as I am able to display the oscilloscope graph into the waveform graph but I am not able to export the values. When I tried using probes, I am getting differnet matrix values till the end of the connection given to 'write to spreadsheet' but not able to export the values. The second image shows the write to spreadsheet file inside the while loop as i thought it will reduce the memory.. but it is still not working...
    Attachments:
    Scanner complete program.jpg ‏713 KB
    full scanner program 2.jpg ‏664 KB

  • How to export bulk data in text file

    Dear,
    We have an requirement to get data from GL CONTAINING below tables, but it's taking lot of time, could you share the best way to get data in text file as quick as possiable.
    from gl_je_headers_v,gl_je_lines,GL_JE_CATEGORIES
    ,gl_code_combinations_v
    where gl_je_headers_v.je_header_id = gl_je_lines.je_header_id
    AND GL_JE_CATEGORIES.je_category_name = gl_je_headers_v.je_category
    and gl_code_combinations_v.CODE_COMBINATION_ID =
    gl_je_lines.code_combination_id
    and gl_code_combinations_v.CHART_OF_ACCOUNTS_ID = 50349
    AND gl_je_headers_v.PERIOD_NAME = 'SEP-2012'

    it's based on formatting data in text file
    you can use utl_file but it's row by row process your data
    you can try spool
    as example
    spool c:\tmp\myfile.txt
    select *
    from emp;
    spool off;or try export for example in sql developer

  • How to export subtitles as a text file into DVDSP

    Hi, I am trying to export subtitles from fcp 4.5 to dvdsp 3 as a .txt file. (Dvdsp can use .txt files in its subtitle track.)
    I had already created all the subtitles in fcp, and I hope that there is a way where I do not have to create them again from scratch in dvdsp.
    Thank you!

    Hi Hanumang,
    So, I did the txt file piece by pice. It did not go into dvdsp perfectly; I had to shift some of the titles around a bit.
    Now I have another problem which I jusdt posted.
    Perhaps you can help me again?
    New issue:
    I now imported an improved (re-edited with a few brightness corrections) compressed file into DVDSP, deleted the previous file, dragged the new file into tracks in Dvdsp. (Let's call this project "new").
    Now the subtitles from S1 have disappeared! (I had spend tons of time creating subtitles)
    I did a new save, so, yesterdays DVDSP project (let's call this project "old") is still OK, with the perfect subtitles, but not-all-perfect video track (where I improved the brightness filter).
    Can I re-import the subtitles from the "old" project into the "new" one? If yes, how?
    Or, can I export the subtitles from "old" into a txt. file and then import it into project "new?"
    Please help!
    Thank you for your time!
    Gabriele (without an intern

  • Data getting truncated while exporting report to a text file in crystal 10?

    Hi All,
    I am using crystal 10.When exporting report to a text file ,a dialog prompts asking for Character perinch with a default value 9.If I change the value from 9 to 16 i am getting the correct data(that means character per inch value is 16) and it update "CharPerInch" value in registry under following location to 16.
    HKEY_CURRENT_USER\Software\Crystal Decisions\10.0\Crystal Reports\Export\Text
    The dialog asked for character per inch also has option to select not to prompt again and i also selected that in first go.
    When i export the report again in text format it didn't prompt for number of character per inch but the data gets truncated.
    What i believe is even though it updates entry in registry and reads, it is not using the same value for export. It never consider the value that is in registry, if the check box is not selected then it is using the value entered in the dialog and if the check box is selected then in the next run it uses the default value as 9.
    Can anyone suggest me how to override this problem ? Is there any other setting place in registry where i can enter the number of character per inch.I don't want to crystal to prompt always for character per inch.

    Hi Venkateswaran,
    The other option to avoid truncation of the data could be
    Right click the text filed
    Click on Format Text to open the Format Editor
    On Common tab check the text box for Can Grow.
    This will prevent the data from truncating in preview as well as while exporting to text.
    Otherwise you will have to set the characters per inch to 16 each time. I donu2019t see changing the registry value causing any difference here.
    Regards,
    Aditya Joshi

  • Export Screen to Flat Text file

    Hello,
    I'm very new in SAP and need to modify a little program.
    I would like to export the current screen in a flat text file.
    The file must be stored on the SAP server ( /usr/sap/data/bel) so not on my local harddrive.
    I searched and found found functions like WS_download and GUI_download, but I'm not sure how to use them. Can somebody help me please?
    Curent Code of my report:
    REPORT ZAT_CLRDEP01.
    Tables declaration
    tables : vbrp,bkpf,bseg.
    Data declaration
    data: begin of itab1 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab1.
    data: begin of itab2 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab2.
    data: begin of itab3 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              belnr like bkpf-belnr,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
          end of itab3.
    data: begin of itab4 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
              pswbt like bseg-pswbt,
          end of itab4.
    data: vbeln_tst like vbrp-vbeln.
    Selections
    parameters accgrp like vbrp-ktgrm default '03' obligatory.
    parameters compcde like bkpf-bukrs default 'LOI' obligatory.
    select-options: billdoc for vbrp-vbeln.
    select-options: customer for bseg-kunnr.
    select-options: fiscyear for bkpf-gjahr.
    select-options: reldate for bseg-augcp.
    select-options amount for bseg-pswbt.
    INITIALIZATION.
      fiscyear-low = sy-datum(4).
      fiscyear-high = sy-datum(4).
      append fiscyear.
      reldate-high = sy-datum.
      append reldate.
      amount-low = '100'.
      amount-high = '2000'.
      append amount.
    START-OF-SELECTION.
      refresh: itab1,itab2,itab3,itab4.
      clear  : itab1,itab2,itab3,itab4.
      clear: vbeln_tst.
      select * into corresponding fields of table itab1
        from vbrp inner join bkpf
        on    vbrpmandt = bkpfmandt
          and vbrpvbeln = bkpfxblnr
        where vbrp~ktgrm = accgrp
          and bkpf~bukrs = compcde
          and bkpf~gjahr = fiscyear.
      loop at itab1.
        if itab1-vbeln ne vbeln_tst.
          move itab1-belnr to itab2-belnr.
          move itab1-vbeln to itab2-vbeln.
          move itab1-arktx to itab2-arktx.
          append itab2.
        endif.
        vbeln_tst = itab1-vbeln.
      endloop.
      loop at itab2.
        select * from bseg
                      where bukrs = compcde
                        and belnr = itab2-belnr
                        and gjahr = fiscyear
                        and buzei = '001'
                        and augcp in reldate
                        and augbl ne ''
                        and vbeln in billdoc
                        and kunnr in customer.
          if sy-subrc = 0.
            move itab2-belnr to itab3-belnr.
            move bseg-kunnr to itab3-kunnr.
            select single name1 from kna1
                          into itab3-name1
                 where kunnr = itab3-kunnr.
            move itab2-vbeln to itab3-vbeln.
            move bseg-zfbdt to itab3-zfbdt.
            move bseg-augcp to itab3-augcp.
            move bseg-augbl to itab3-augbl.
            move itab2-arktx to itab3-arktx.
            append itab3.
          endif.
        endselect.
      endloop.
      loop at itab3.
        select * from bseg
                    where bukrs = compcde
                      and belnr = itab3-belnr
                      and gjahr = fiscyear
                      and hkont = '0000488600'
                      and pswbt in amount.
          if sy-subrc = 0.
            move itab3-kunnr to itab4-kunnr.
            move itab3-name1 to itab4-name1.
            move itab3-vbeln to itab4-vbeln.
            move itab3-zfbdt to itab4-zfbdt.
            move itab3-augcp to itab4-augcp.
            move itab3-augbl to itab4-augbl.
            move itab3-arktx to itab4-arktx.
            move bseg-pswbt to itab4-pswbt.
            append itab4.
          endif.
        endselect.
      endloop.
    END-OF-SELECTION.
      sort itab4 by kunnr.
      loop at itab4.
        at first.
          write:/ '   customer                    ','billing doc.',
          'Billing date',' Release date','Release doc.',
         '            material                         ','G/L amount'.
        endat.
        write:/ itab4-name1.
        write at 36 itab4-vbeln.
        write at 47 itab4-zfbdt.
        write at 61 itab4-augcp.
        write at 74 itab4-augbl.
        write at 88 itab4-arktx.
        write at 127 itab4-pswbt.
      endloop.
    Thanks in advance!
    Kindly regards,
    Nico

    Hello,
    Thanks for your help and fast reaction, I added the 'open dataset' but probably made some minor error:
    I'm getting  field "result" (name of my text file) is unknown. It is neither in one of the specified tables or defined by a 'DATA' statement
    Currently have following code:
    Objet du programme :                                                 *
          Recherche de documents de facturation SD sur base de           *
          l' "account assignment group" de l'article                     *
          Stocker ces valeurs dans une table interne afin                *
          de retrouver les pièces comptables correspondantes.            *
          Afficher le N° du document de facturation, celui de la         *
          pièce comptable, la date de release du release document.       *
    REPORT ZAT_CLRDEP01.
    Tables declaration
    tables : vbrp,bkpf,bseg.
    Data declaration
    data: begin of itab1 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab1.
    data: begin of itab2 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab2.
    data: begin of itab3 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              belnr like bkpf-belnr,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
          end of itab3.
    data: begin of itab4 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
              pswbt like bseg-pswbt,
          end of itab4.
    data: vbeln_tst like vbrp-vbeln.
    Selections
    parameters accgrp like vbrp-ktgrm default '03' obligatory.
    parameters compcde like bkpf-bukrs default 'LOI' obligatory.
    select-options: billdoc for vbrp-vbeln.
    select-options: customer for bseg-kunnr.
    select-options: fiscyear for bkpf-gjahr.
    select-options: reldate for bseg-augcp.
    select-options amount for bseg-pswbt.
    INITIALIZATION.
      fiscyear-low = sy-datum(4).
      fiscyear-high = sy-datum(4).
      append fiscyear.
      reldate-high = sy-datum.
      append reldate.
      amount-low = '100'.
      amount-high = '2000'.
      append amount.
    START-OF-SELECTION.
      refresh: itab1,itab2,itab3,itab4.
      clear  : itab1,itab2,itab3,itab4.
      clear: vbeln_tst.
      select * into corresponding fields of table itab1
        from vbrp inner join bkpf
        on    vbrp~mandt = bkpf~mandt
          and vbrp~vbeln = bkpf~xblnr
        where vbrp~ktgrm = accgrp
          and bkpf~bukrs = compcde
          and bkpf~gjahr = fiscyear.
      loop at itab1.
        if itab1-vbeln ne vbeln_tst.
          move itab1-belnr to itab2-belnr.
          move itab1-vbeln to itab2-vbeln.
          move itab1-arktx to itab2-arktx.
          append itab2.
        endif.
        vbeln_tst = itab1-vbeln.
      endloop.
      loop at itab2.
        select * from bseg
                      where bukrs = compcde
                        and belnr = itab2-belnr
                        and gjahr = fiscyear
                        and buzei = '001'
                        and augcp in reldate
                        and augbl ne ''
                        and vbeln in billdoc
                        and kunnr in customer.
          if sy-subrc = 0.
            move itab2-belnr to itab3-belnr.
            move bseg-kunnr to itab3-kunnr.
            select single name1 from kna1
                          into itab3-name1
                 where kunnr = itab3-kunnr.
            move itab2-vbeln to itab3-vbeln.
            move bseg-zfbdt to itab3-zfbdt.
            move bseg-augcp to itab3-augcp.
            move bseg-augbl to itab3-augbl.
            move itab2-arktx to itab3-arktx.
            append itab3.
          endif.
        endselect.
      endloop.
      loop at itab3.
        select * from bseg
                    where bukrs = compcde
                      and belnr = itab3-belnr
                      and gjahr = fiscyear
                      and hkont = '0000488600'
                      and pswbt in amount.
          if sy-subrc = 0.
            move itab3-kunnr to itab4-kunnr.
            move itab3-name1 to itab4-name1.
            move itab3-vbeln to itab4-vbeln.
            move itab3-zfbdt to itab4-zfbdt.
            move itab3-augcp to itab4-augcp.
            move itab3-augbl to itab4-augbl.
            move itab3-arktx to itab4-arktx.
            move bseg-pswbt to itab4-pswbt.
            append itab4.
          endif.
        endselect.
      endloop.
    END-OF-SELECTION.
      sort itab4 by kunnr.
    EXPORT OUTPUT TO FLAT TEXT FILE :                                    *
    open dataset result for output in text mode.
    if sy-subrc = 0.
    loop at itab4.
    at first.
    write:/ ' customer ','billing doc.',
    'Billing date',' Release date','Release doc.',
    ' material ','G/L amount'.
    endat.
    write:/ itab4-name1.
    write at 36 itab4-vbeln.
    write at 47 itab4-zfbdt.
    write at 61 itab4-augcp.
    write at 74 itab4-augbl.
    write at 88 itab4-arktx.
    write at 127 itab4-pswbt.
    transfer itab4 to result.
    endloop.
    close dataset result.
    endif.
    Thank you!
    Regards,
    Nico

  • How to get the content of text file to write in JTextArea?

    Hello,
    I have text area and File chooser..
    i wanna the content of choosed file to be written into text area..
    I have this code:
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.*;
    public class Test_Stemmer extends JFrame {
    public Test_Stemmer() {
    super("Arabic Stemmer..");
    setSize(350, 470);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setResizable(false);
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    JButton openButton = new JButton("Open");
    JButton saveButton = new JButton("Save");
    JButton dirButton = new JButton("Pick Dir");
    JTextArea ta=new JTextArea("File will be written here", 10, 25);
    JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
    final JLabel statusbar =
                  new JLabel("Output of your selection will go here");
    // Create a file chooser that opens up as an Open dialog
    openButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent ae) {
         JFileChooser chooser = new JFileChooser();
         chooser.setMultiSelectionEnabled(true);
         int option = chooser.showOpenDialog(Test_Stemmer.this);
         if (option == JFileChooser.APPROVE_OPTION) {
           File[] sf = chooser.getSelectedFiles();
           String filelist = "nothing";
           if (sf.length > 0) filelist = sf[0].getName();
           for (int i = 1; i < sf.length; i++) {
             filelist += ", " + sf.getName();
    statusbar.setText("You chose " + filelist);
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that opens up as a Save dialog
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    int option = chooser.showSaveDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that allows you to pick a directory
    // rather than a file
    dirButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int option = chooser.showOpenDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    c.add(openButton);
    c.add(saveButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(ta);
    c.add(ta2);
    public static void main(String args[]) {
    Test_Stemmer sfc = new Test_Stemmer();
    sfc.setVisible(true);
    }could you please help me, and tell me what to add or to modify,,
    Thank you..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    realahmed8 wrote:
    thanks masijade,
    i have filter the file chooser for only text files,
    but i still don't know how to use FileReader to put text file content to the text area (ta) ..
    please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
    Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
    Give it a try.

  • Where are these unix executable files coming from and how do I recover the original text file?

    where are these unix executable files coming from and how do I recover the original text file?

    When you upgraded to Lion did you have AppleWorks installed on your mac?
    Most of the AW documents can be opened by Pages 09 or Numbers 09 with most of the orginal format in tact. (I do not know if previouse verision will work) just open the AW file with both and see which one works best.
    Text Edit will also open most of the AW files as well but will require a lot of work to restore them to their orginal format.
    If you have AW Database documents then they are not supported. 
    These document show up as "exec icons", Kind: Unix Executagle File.
    They also will show up as .cwk file if they are small files. I have a couple that were under 1mb that are shown as " Kind: AppleWorks Document" but will not open.
    The only option to open AW database is to have AW installed on a mac with a pre-Lion OS to recover the file.

  • How can u insert and retrieve text files in any format using forms6i.

    how can u insert and retrieve text files in any format using forms6i.
    can u give me an example of an insert statement, let's assume the file is located in the a:drive.
    and retrieving the files, i would give the user a list of all the files that are in the database, the user would select one, but what command(or piece of code) would open the file in its apppropriate editor.
    e.g .pdf formatted file would open in acrobat.
    any help would be appreciated.
    Thanks
    Hussein Saiger

    the filereference class is for downloading and uploading files.
    if you want to load xml, use the xml class.
    and, if you want to write to an xml file and don't want to use server-side code, wait.

  • How to Export multiple photos from pdf files?.

    Good day.
    How to Export multiple photos from pdf files?.
    Thanks.

    Hello
    how to reach from file menu ?.
    Running Adobe reader 9 version 9.3.0
    Thanks again.

  • How do I export Address Book to text file?

    I want to create a separate database for my professional contacts using Excel or Filemaker.  Right now I have them all in Address Book.  If I could just export my database as a tab-delimited text file.

    The AB file
    ~/Library/Application Support/AddressBook/AddressBook-v22.abcddb
    is a SQLite3 database. You can extract data with
    http://menial.co.uk/software/base/
    or Firefox SQLite manager

  • How to import data from a text file into a table

    Hello,
    I need help with importing data from a .csv file with comma delimiter into a table.
    I've been struggling to figure out how to use the "Import from Files" wizard in Oracle 10g web-base Enterprise Manager.
    I have not been able to find a simple instruction on how to use the Wizard.
    I have looked at the Oracle Database Utilities - Overview of Oracle Data Pump and the Help on the "Import: Files" page.
    Neither one gave me enough instruction to be able to do the import successfully.
    Using the "Import from file" wizard, I created a Directory Object using the Create Directory Object button. I Copied the file from which i needed to import the data into the Operating System Directory i had defined in the Create Directory Object page. I chose "Entire files" for the Import type.
    Step 1 of 4 is the "Import:Re-Mapping" page, I have no idea what i need to do on this page. All i know i am not tying to import data that was in one schema into a different schema and I am not importing data that was in one tablespace into a different tablespace and i am not R-Mapping datafiles either. I am importing data from a csv file.
    For step 2 of 4, "Import:Options" page, I selected the same directory object i had created.
    For step 3 of 4, I entered a job name and a description and selected Start Immediately option.
    What i noticed going through the wizard, the wizard never asked into which table do i want to import the data.
    I submitted the job and I got ORA-31619 invalid dump file error.
    I was sure that the wizard was going to fail when it never asked me into which table do i want to import the data.
    I tried to use the "imp" utility in command-line window.
    After I entered (imp), i was prompted for the username and the password and then the buffer size as soon as i entered the min buffer size I got the following error and the import was terminated:
    C:\>imp
    Import: Release 10.1.0.2.0 - Production on Fri Jul 9 12:56:11 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Username: user1
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Import file: EXPDAT.DMP > c:\securParms\securParms.csv
    Enter insert buffer size (minimum is 8192) 30720> 8192
    IMP-00037: Character set marker unknown
    IMP-00000: Import terminated unsuccessfully
    Please show me the easiest way to import a text file into a table. How complex could it be to do a simple import into a table using a text file?
    We are testing our application against both an Oracle database and a MSSQLServer 2000 database.
    I was able to import the data into a table in MSSQLServer database and I can say that anybody with no experience could easily do an export/import in MSSQLServer 2000.
    I appreciate if someone could show me how to the import from a file into a table!
    Thanks,
    Mitra

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to import data from a text file through DTS to Sql Server

    Please don't mistake me as i'm a new comer to sql server,please help me.
    how to import the data present in a plain text file through DTS into sql server and store the data in a temporary table.
    How far the temporary table is stored in the database.
    Please reply me as soon as possible.
    Thank you viewers.

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • How to download data into a text file format ?

    Hi, all.
    My situation now is: I have a report pogram which can retrieve data from database, and I would like to export or download those data to outside as a text file (.txt) in my local computer.
    So, does anyone know how to do it? i mean my report coding should add on or enhance with what coding in order to do like that.
    Thanks in advance.

    Hi,
    Use GUI_DOWNLOAD Function module.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                  =
        filename                      = 'FILEPATH'* 
    FILETYPE                      = 'ASC'
      APPEND                        = ' '
       WRITE_FIELD_SEPARATOR         = 'X'  (Field separator )
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
      CONFIRM_OVERWRITE             = ' '
      NO_AUTH_CHECK                 = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      WRITE_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = t_customer ( give internal tablename )
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22 .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.                                 " IF SY-SUBRC

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

Maybe you are looking for