How to process Excel through JDBC

Hi, there!
In windows,we could build an ODBC Driver for excel,then how to write the sql statment to query and update the content of the excel through JdbcOdbcDriver?
I have create an ODBC DataSource named Register,the excel file is RegisterInfo.xls and the name of the sheet that My data was stored in is RegisterInfo,How should I do?
Thanks a lot.

Your JDBC driver class is sun.jdbc.odbc.JdbcOdbcDriver
The connection URL is jdbc:odbc:<name of your DSN>
(I'm not sure how you would treat spaces in the DSN name, so I'd leave them out)
To see the data
SELECT * FROM "RegisterInfo$"
Don't forget the quotes around the table name, because I'm not sure if the $ at the end isn't somehow interpreted. If you have spaces in the table name (=Worksheet) you need them anyway. The same goes for any columns that have a space in their name.
Thomas

Similar Messages

  • How to process Excel attachment contents?

    I'm looking to read excel attachments to an instance and use attachment contents in the process. Any help will be highly appreciated.
    Thnx,
    MK
    Edited by goelmk at 11/19/2007 10:19 AM

    I can think of two alternatives:
    1- Use COM (introspect Excel, and use it to open the files)
    2- Use a Java library that can read Excel (for example:
    http://poi.apache.org/ )
    You must first download the attachment to a temporary folder. The filename
    should be unique (i.e.: you can use the instance number as part of the
    name 'this.id.number')
    The following code should download all attachments:
    bytesWritten as Int
    fileName as String
    files as String[]
    //Download all attachments
    for each attachment in attachments
    do
         fileName = attachment.fileName + "_" + this.id.number
         writeFromBinaryTo BinaryFile
              using data = attachment.contents,
                   name = fileName,
                   append = false
              returning bytesWritten
         if bytesWritten != attachment.contentSize then
              //Something is wrong, handle de error...
         else
              files[] = fileName
         end
    end
    for each file in files
    do
         //Use the desired API to process each of the files
    end
    Which choice of API you use, depends on the environment, performance
    constraints, etc. If you choose COM, you must make sure that the
    downloaded files are available on the machine where the COMBridge is
    running (for example by using a network share), and that you're not
    overloading Excel (i.e. not too many concurrent instances, Excel is not
    intended for heavy concurrent use).
    POI should be easier to work with, but your mileage may vary depending on
    how 'standard' the Excel files are (macros that run on load, probably
    won't work).
    Hope this helps,
    Juan
    On Mon, 19 Nov 2007 15:19:36 -0300, Manoj Goel wrote:
    I'm looking to read excel attachments to an instance and use attachment
    contents in the process. Any help will be highly appreciated.
    Thnx,
    MK
    Edited by goelmk at 11/19/2007 10:19 AM--
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

  • TS3297 How to process payment through Apple ID ?

    Apple ID says to contact SUPPORT.  It says unable to process my payment after trying to make a purchase through a game app!!!!

    If you are getting a message to contact iTunes Support then you can do so via this link and ask them for help (we are fellow users on these forums, we won't know why the message is appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to save Chinese&Japanise Character through JDBC or Hibernate in ORACLE

    Dear all,
    How to save chinese and japanise character in oracle 9i database through JDBC or Hibernate.
    Please let us know if you have any source code.
    Thanks in advance.
    Thanks,
    Sundararaman.V.S.

    http://forums.oracle.com/forums/ann.jspa?annID=599
    C.

  • How to connect informix database from informatica through JDBC instead of ODBC

    How to connect informix database from informatica through JDBC instead of ODBC.

    Hi mate,
    You may get fast reply for this in informatica forums.
    Thanks
    http://mkashu.blogspot.com

  • How to process batch input session through program

    Hi Friends,
    I am getting 5 batch input sessions in SM35,but  I want to process these all sessions through program without going to SM35.
    How it is possible through Program?
    Please Guide me!
    Thanks,
    Yogesh

    Hi,
    It's the report to run the batchinput sessions.
    When you create to B.I. session, you can execute it by transaction SM35 (but it uses rsbdcsub) or rsbdcsub.
    For example you can use it in the same program where you create B.I.:
    Here the code to fill the structures of FI batch input
    standard....
    ...here it creates session...
    SUBMIT RFBIBL00 WITH DS_NAME = VA_FILE
    WITH CALLMODE = CALLMODE AND RETURN.
    ....here it runs session....
    SUBMIT RSBDCSUB WITH MAPPE = P_NAME
    WITH VON = SY-DATUM
    WITH BIS = SY-DATUM
    WITH FEHLER = ' '
    TO SAP-SPOOL
    LIST NAME P_NAME
    LIST DATASET P_NAME
    COVER TEXT P_NAME
    NEW LIST IDENTIFICATION ' '
    EXPORTING LIST TO MEMORY
    AND RETURN.
    regards,
    Shiva.

  • How to send 1000 records per each time through JDBC adapter

    Hi all,
    In my JDBC to File scenario, SQL Server database having 10,000 records. I want to split these records into 1000 records and process 1000 records each time. How we can do in JDBC adapter. Is there any options in JDBC adapter. Please give me reply very thanks to all of u.

    Hi all,
    Thanks for your repsone. I am very happy.
    If it sender Jdbc we can write the query. If it is Receiver Jdbc adapter and I want to send the record as 1000 at a time. 
    You may give this advise that is you can use RecordsetPerMessage option at sender side. But here I want to read all the records and send 1000 records only.
    please give me valuable answer.
    thanks in advance...

  • How to export crystal report to excel through progeam

    Hi,
    Can any help me how to export crystal report to excel through program(C#). I'm using VS2005.
    Also, the report should be in a pivot table format after exporting to the excel..please help me how to do this
    Thanks,
    Venky

    Hi Venkat,
    The link below provides the code C# in an ASP.NET codebehind file
    http://www.codeproject.com/KB/cs/Crystal_Report_Export.aspx
    http://aspalliance.com/478_Exporting_to_Excel_in_Crystal_Reports_NET__Perfect_Excel_Exports.2
    Regards,
    Abhijeet  T.

  • How to upload data through excel into ssm

    Dear SSM Gurus,
    I am new to strategy management ,PAS Model I have created successfully based on requirement given by our business unit.
    Business unit (FMCG product dealer) have 5 region , and 2 accounts under which we have multiple stores ,
    I have sales data in excel sheet by store monthly(actual & target)
    I have created an Link to excel sheet which has following format
    Time     Name of the store     sales_act     sales_target
    Jan-09     Store1 region 1 account1      290     300
    Feb-09     Store1 region 1 account1      320     350
    Please suggest how to upload excel data into Actual and traget variables (suggest me IDQL commands).
    Regards
    Arif

    Dear Arif ,
    For loading the data from an excel sheet , using a procedure is very handy.If possible , create a separate procedure for loading the targets. I am giving you a rought transcript of a procedure which loads data from an excel sheet. Please make the appropriate changes where ever necessary :
    ....Clear all previous selections of dimensions and variables
    clear status
    ...Set period range for the data to be loaded
    set period 2009
    ....Selecting dimensions and variables for data mapping
    SET DATE DMY
    select dim STORE input
    ....Select the variables to be loaded
    select var sales_act
    ....Set across and down layout to match source data layout
    across  var down  STORE,time
    ACCESS EXTERNAL
    USE 'C:\actual_data.csv'
    DESCRIPTION FREE ,
    Peek only 10
    .....Reading the data into the model
    read
    .....To end access system
    end
    Please check if the data loads properly at the input level. If this is successful , then we can consolidate the data and then you can get the data at other levels as well.
    Hope this helps
    Vijay

  • How to trigger a process chain through

    Hi All,
    Can any one send me the steps to trigger a process chain through a job in sm37.
    Thanx
    Kishore

    Just a trigger ?
    Best way I can suggest is to call the function module 'RSPC_API_CHAIN_START'...
    So, create an ABAP Program, call the function in the program. You can add parameters and a selection screen to make the program generic and add variants to it.
    Once you are done with this, schedule a job with this program and whichever variant you're lookin for and you should be done.
    - Aditya
    Assign points if helpful

  • How to Process SSAS measure groups individually through BIDS

    hi guys:
      I know how to process measure groups individually via SSMS but I just can not find it at BIDS? Can anyone point that to me?
    thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    just found it ... sorry,  it's monday here...
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

  • How to Schedule OWB Process Flows through OEM

    Hi,
    I have successfully created mappings and process flows for my project.
    But now I want to schedule the process flows through OEM.
    Following are my DB configurations..
    OWB Version : 10g R1 (Oracle SID LVDSGDEV ) on windows
    Runtime Owner: ATS_RUN_OWNER (Oracle SID LVDSGDEV )
    Runtime User : ATS_RUN_USER (Oracle SID LVDSGDEV )
    Work Flow Schema: OWF_MGR (Oracle SID LVDSGDEV)
    Source & Target DB : 10g (Oracle SID LVRUNDEV) on windows
    Process which I want to Schedule is....
    Process Flow Location: ATS_LOC
    Process Flow Name: PKG_DM
    Process Name: BASE_LOAD
    Can someone please suggest me, the procedure to schedule this process flow.....

    You may choose just to schedule the mapping directly through OEM. Create an OEM SQLPlus job that calls the script:
    @c:\owb_home\owb\rtp\sqlplus_exec_template.sql;
    Check the beginning of the sqlplus_exec_template.sql. It will show examples of the parameters it accepts and it has some documentation. It works nicely.

  • Need help!: How to covert Excel into BLOB and pass into procedure?

    Hi,
    I am writing a program in which I am uploading file from front-end and passing that file into Oracle procedure in BLOB format.
    Can someone help me ,that **how to convert Excel sheet into BLOB and then how we can pass that BLOB object to procedure in oracle*.
    Any help will greatly appreciated.
    Thanks

    Guys,
    I am able to convert FormFile into byutes using getFileData();
    But when I am tryint oconvert into BLOB,it is dhoowing me the error.
    Please find the complete details below.
    I am trying to Upload one file using FormFile of Struts and I need to pass that Form File into one procedure having BLOB as aIn parameter. SO I need to convert that file into BLOB object
    The code that I am trying is :
    try{
    BLOB blob= BLOB.getEmptyBLOB();
    System.out.println("before");
    blob.setBytes(theFile.getFileData());
    System.out.println("after");
    cs.setBlob(3, blob);
    }catch(Exception e){System.out.println("in the BLOB "+e);}
    After running the code,I am getting the following error
    java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at oracle.jdbc.driver.DatumBinder.bind(OraclePreparedStatement.java:15839)
    at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:2865)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2150)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3279)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
    at dms.bo.impl.LoadManagement.UploadMetadataDAOImpl$1.doInCallableStatement(UploadMetadataDAOImpl.java:38)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:953)
    at dms.bo.impl.LoadManagement.UploadMetadataDAOImpl.getBlobString(UploadMetadataDAOImpl.java:28)
    at dms.web.action.LoadManagement.UploadMetadataAction.perform(UploadMetadataAction.java:33)
    at dms.web.action.common.BaseAction.execute(BaseAction.java:17)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:619
    So with

  • Row Grouping in Excel through ABAP OLE

    Hi Experts,
    I am downloading some ALV report output using OLE with different formatting. The downloaded file has to show data
    in the grouping format.
    For example;
    Interanl table contains fields : Customer Number and sales Order, Amount,
    Customer Number sales Order Amount
    1000                     120000001   3000.30
    1000                     120000002   3400.00
    1001                     122000001   2000.00
    1001                     122000002   3440.00
    After it downloaded the Excel should contains only two line(by dfaultt)
    +    1000                120000001  3000.30
    +    1001                 122000001 2000.00
    When you click on symbol(+)  then hidden rows will shown.
    We can do it in Excel by using Group. Just select few rows(row number 1 to 5) and then go to
    DATA->GROUP AND OUTLINE->GROUP.
    Then u will see one line for the selected rows.
    Can anybody tell me how to achieve it through OLE in ABAP. Your inputs are highly needed for me. Thank you so mush!
    Regards,
    Meera.

    We can do it,  Can anybody tell me OLE Mehod which should I use in the reprot?

  • Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter

    Dear Gurus,
    Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
    His Requirement::
    1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
    2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
    3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running  on that.....
    We Proposed::
    1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
    but he s not accepting for this
    2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
    but he s not even accepting for this
    3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
    but he s not even accepting for this
    We have done some R & D:::
    1. WE approached even through BPM and via switch conditions is one scenario
       FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
    2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
    Even though we know this...concept that...we jsut tried::
    In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
    Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables 
    Regards:
    Amar Srinivas Eli

    Hi! All,
    Finally I decided to do the scenario in two steps:
    1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
    2: FILE RECV --> RFC
    But I am getting issue while doing first scenario
    Desgn :
    I have created 2 Synchronous interfaces :
    1) FILE 2 JDBC REQ
    In this a) out put message is FILE  Req
              b) Input msage:; FILE RES
    2} JDBC2FILE RECV
            a) Output mesage;; JDBC REQ
            b) Input Msge :: JDBC Response
    Mappings:
    1) File REQ-->JDBC REQ
    2) JDBC RES-->FILE RES
    Interface mappings:
    1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
    CONFIGURATION ::
    1: One Seder File CC
    2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
    3; One Sender Agreement
    4: 2 Recver agreements
    5: One Interface Determination and
    6: One RECCV Determination
    My Question;;
    1. First let confirm whether my development steps are right or not ?
    2: Another thing s I am not sure reg Configuration Steps means
    whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
    3: main Issue is::::
    If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
    My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
    without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
    pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
    also explain in detail if i can  go for BPM
    Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
    Scenario File-JDBC-RFC
    File<-->JDBC Sync coomunication.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
    /people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
    Regards::
    Amar Srinivas Eli

Maybe you are looking for

  • Question about ICloud. Do I have to back-up my iPad and iPhone4 b4 sync with iTunes?

    Question about ICloud. Do I have to back-up my iPad and iPhone4 to iCloud b4 sync with iTunes? Last time I synced iphone4 with iTunes, I updated to 5.0.1 when I connected, but it wiped my calendar entries. I had to reset to the last date I had synced

  • RFC Problem

    Hi, I am doing one scenario Sender involving proxy  and receiver JDBC Adapter.SAP is sending one item to Oracle and getting some fields from Oracle corresponding to that item.While getting response we are using RFC Adapter in XI.This involves two asy

  • Creating a flag based formula for Dimension

    Greetings everyone, Hopefully this is simple answer.  I have two dimensions "A" and "B" and a measure "C", where "B" is many to one attribute of "A", I would like to create a Flag formula in context that can characterise if a certain attribue of "B"

  • Has anyone else encountered problems with Adobe CMM clobbering Photoshop add-in filters?

    I recently tried to install Adobe CMM, as a pop-up window suggested after I installed Photoshop CS5 on a new computer, running Win7x64 Ultimate. Before trying to install CMM, my Akvis Sketch Plug-In for Photoshop worked fine. Afterwards, Akvis Sketch

  • How do I cascade Mozilla windows in Windows 7 desktop

    In older versions when many Firefox windows were open, the option to cascade the windows was available. On this PC with Windows 7 this option seems to have disappeared. Also, it used to be possible to close all Firefox windows at once, and now they h