How to use a excel sheet as a database.

Using JSP i have to use a Excel sheet as a database.ie, i have to store and fetch data into or from a Excel Sheet and execute SQL Queries. Is it possible?
If possible please give a sample code for that if anybody have the sample code.

Hi Louis,
[Here|http://img125.imageshack.us/my.php?image=exceltestlo7.jpg] is the result of your data.  I downloaded your excel sheet and created a simulated service in 7.1.1 and it works fine.
Below are the steps:
1. Go to Tools -> service component wizard
2. The popup opens : Step1 :  Enter the name of your service component
3. Go to Excel spreadsheet Copy the data for which the service needs to be created.
4. Step 2 : Paste the copied Excel data in the popup
5. Step 3 : Define Input -> just click next
6. Step 4: Define Conditions -> just click finish.
Let me know if it helps.
Good Luck,
Dharmi

Similar Messages

  • How to store an excel sheet in oracle database

    How can I store excel sheet into oracle.

    Or you could use Heterogenous Services to treat Excel as an external database:
    1- Go to Control Panel>Administrative Tools>Data Sources (ODBC)>System DSN and create a data source with appropriate driver. Name it EXCL.
    2- In %ORACLE_HOME%\Network\Admin\Tnsnames.ora fie add entry:
    EXCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.0.24)(PORT = 1521))
    (CONNECT_DATA =
    (SID = EXCL)
    (HS = OK)
    Here SID is the name of data source that you have just created.
    3- In %ORACLE_HOME%\Network\Admin\Listener.ora file add:
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = <hs_sid>)
    (ORACLE_HOME = <oracle home>)
    under SID_LIST_LISTENER like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = d:\ORA9DB)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = ORA9DB)
    (ORACLE_HOME = d:\ORA9DB)
    (SID_NAME = ORA9DB)
    (SID_DESC =
    (PROGRAM = hsodbc)
    (SID_NAME = EXCL)
    (ORACLE_HOME = D:\ora9db)
    Dont forget to reload the listener
    c:\> lsnrctl reload
    4- In %ORACLE_HOME%\hs\admin create init<HS_SID>.ora. For our sid EXCL we create file initexcl.ora.
    In this file set following two parameters:
    HS_FDS_CONNECT_INFO = excl
    HS_FDS_TRACE_LEVEL = 0
    5- Now connect to Oracle database and create database link with following command:
    SQL> CREATE DATABASE LINK excl
    2 USING 'excl'
    3 /
    Database link created.
    Now you can perform query against this database like you would for any remote database.
    SQL> SELECT table_name FROM all_tables@excl;
    TABLE_NAME
    DEPT
    EMP

  • Using Ms-Excel sheet as a Database.

    Hi,
    I want to use MS-Excell spread sheet as a data source and insert and retrive records from it.
    I want to use the spread sheet for Inserting rows and deleting rows from Java application. Can I use it from Java.sql package and use the factory methods as DriverManager and get the connetion Interface.
    Can any one please help in this regrard.
    Thanks in advance.
    Vamshi

    --you can try this!
    try {
                  Connection con=null;
                  ResultSet rs=null;
                  Statement stat=null;
                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   String myDB = "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=d:/tangofox/prac/book1.xls;"+
                                   "DriverID=22;READONLY=true";
                   con=DriverManager.getConnection(myDB, "", "");
                   stat=con.createStatement();
                   rs=stat.executeQuery("Select * from `Sheet1$`");//[Sheet1$]
                   while(rs.next())
                      System.out.println (rs.getString(1));
                   stat.executeUpdate("Insert into 'Sheet1$' values ('yes!')");
              rs.close();
              stat.close();
              con.close();
             catch (Exception err) {
             }

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • How to convert an excel sheet as pdf  and sent mail?

    Hi,
    I have to open an excel file from report and display a value in a cell, based on that value in excel, macros will automatically trigger and the remaining data will fill in excel sheet.
    This sheet i need to convert as pdf and sent as attachment to mail.
    Regards,
    Shree

    Hi,
    I know how to do with word documents using OLE.  But i dont know how to work with Excel sheets.
    I have worked on word documents like displaying data in word document from SAP and saving it into local system.
    But here my requirement is i need to pass pernr to a cell in an Excel sheet, based on pernr in excel some macros will trigger and fill the details. After that, the filled sheet i need to convert as pdf and sent as mail.
    Regards,
    Shree.

  • How to spool in excel sheet of table with 1561828 records

    how to spool in excel sheet of table with 1561828 records
    i think excel got only 65l limit?
    COUNT(*)
    1561828
    i am using windows box...any suggestions?

    Raman wrote:
    means excel 2007 can hold 15,61,828 records ? can i give like spool filename.xls?You can name the spool file anything you want, but surely you realize that naming it 'filename.xls' doesn't make it an xls file. A name is just a name. There are industry standards on certain names indicating certain file formats, but the name doesn't make it that format.

  • How i can load excel sheet into a table in oracle through pl/sql procedure

    Hi,
    How i can load excel sheet into a table in oracle through pl/sql procedure or a pl/sql block. Excel sheet is saved on my c or d drive on my machine. In xls format.

    Depending on how big your spreadsheet is and how frequently you want to do this you might want to contruct insert statements in excel, then run these. I have done this to load a few hundred rows for a one off test on dev.
    e.g. if you have values 1 and 'a' in you spread sheet and want to insert them in to table xxx col1 & 2:
    | /|   A   |   B   |    C
    |1 |col1   |col2   |
    |2 |      1|a      |="insert into xxx ("&$A$1&","&B1&") values ("&A2&",'"&B2&"');"then paste the contents of colum C
    insert into xxx (col1,col2) values (1,'a');into sqlplus or a script.

  • How to uplaod multiple excel sheets in a program

    Hi gurus,
    Can anyone suggest me
    how to upload multiple excel sheets in program.( not in OOPS)
    my excel sheets has 5 sheets like sheet1, sheet2, sheet3 ....like this..
    Thanks & Regards
    kalyan.

    swc_container it_event_container.                       
    swc_create_container it_event_container.                 
    CALL FUNCTION 'SWW_WI_CONTAINER_READ'
                EXPORTING
                  wi_id                    = wd_id
                TABLES
                  wi_container             = it_event_container
                EXCEPTIONS
                  container_does_not_exist = 1
                  read_failed              = 2
                  OTHERS                   = 3.
    if sy-subrc = 0.
    READ TABLE it_event_container WITH KEY element = 'name of your workflow container element'.
                IF sy-subrc = 0.
                  w_variable= it_event_container-value.
                ENDIF.
    endif.
    Regards
    Kedar

  • How to connect to excel sheet and create a universe on top of that

    hi,
    can any tell me how to connect to excel sheet and create a universe on top of that.what connection should i keep.

    Hi Vishal,
    Here is how you can create a universe from an excel file:
    Here are the steps to follow:
    1. Launch Designer, select the Quick Design Wizard if not already open, and click "Begin".
    2. Type in a universe name then click "New".
    3. Select the Network layer "ODBC Drivers" and then click OK.
    4. In the ODBC Drivers window, select the "Login" tab and then type in a name for this connection.
    5. Select "Generic ODBC data source" from the drop-down list for database engine.
    6. Click the "ODBC Admin" button to define data source name.
    7. In the ODBC Data Source Administrator window, click Add.
    8. Select "Microsoft Excel Drivers" and click Finish.
    9. Enter a data source name.
    10. Click "Workbook", select the file you want to access, and click OK.
    11. Locate and select the data source name from the drop-down list.
    12. Click "Test" to make sure that the server is responding.
    You will be back at the Quick Design Wizard "Step 1 of 4". Click the "Next" button and follow through the rest of the steps in order to complete the universe.
    -Shreyash

  • How to Get the excel sheet formula from the server side into the j2me app?

    How to Get the excel sheet formula from the server side into the j2me application?
    Here the excel sheet is in server side.i want to do get the excel sheet values (only some part of the excel sheet based on some conditions) from server side into j2me.In j2me I want to done some client side validation based on the formula of excel sheet.Then i resend the new updated data to the server.
    But here deosn't know any mehtod to get the excel sheet formula from server side.So kindly help me to get the excel sheet formula from the server.
    So how to get the excel sheet formula frome the server side into j2me Application...
    Plz guide me to solve this issue...
    thanks & regards, Sivakumar.J

    You should not post a thread more than once. You've crossposted this question to another forum. I have deleted that one.

  • How to use a vector to navigate my database? please help me.. ty

    how to use a vector to navigate my database? please help me.. ty

    Quite unclear request�
    Can you provide more details?

  • How export report into excel sheet automatically using SSRS 2010?

    Hi,
    I have created many reports using SQL Server Data Tool 2010 and at my work, we are using active batch to ran reports every month.
    Now question is, my boss want me to set up reports such a way that when active batch is ran, reports should be exported into excel sheet automatically with the default values given for parameters at some specific folder location. How can I export report
    into excel sheet automatically when active batch is executed?
    Please help me on this. Thanks for the help in advance.
    Vicky

    Check this:
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:/test.xls'
          filetype                = 'ASC'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_output
    Regards.

  • How to import tablesfrom excel sheet to database using sqldeveloper

    hi dear,
    i have lots of tables without data in excell sheet. i want to import all the tables in to data base using sql developer .how to import pls help me

    No one here is your 'dear' so please don't use such terms.
    Whenever you post provide your sql developer version.
    >
    i have lots of tables without data in excell sheet. i want to import all the tables in to data base using sql developer
    >
    You will need to provide an example of what you mean by a table without data.
    What database and what version. What do you expect to end up with in the database after such an 'import'?

  • How to append in excel sheet using Java

    Can anybody help me out in figuring out as how to append in already existing excel sheet using Java.
    I am able to to write in the existing excel sheet using HSSF but is not able to append the data row wise.
    So plz tell me how to do the same.

    Manisha_7 wrote:
    Thnx for the link......No problem.
    but i alsot wanted to know if apart from using poi there is a way to append the data in excel sheet like using JExcel.Don't know. JExcel is also not apart of Java's core API.

  • How to specify the excel sheet you wanted while using Active X

    could anyone tell me how to name or append to specific the excel sheet? i do not know where and how to set the path for it.

    Hi Gorka, could you describe a bit more, on the setting of page before or after adding? Do you use a string or numeric to set the parameter, and if i want the datas to be set to say, workbook (project.xls), sheet 2, how would you set it? I tried to use index, rather than add method, and when i set the index to 0, the datas will be at sheet 1, and for other index numbers, there would be an error of code 1.

Maybe you are looking for