Data access from Access Database

I want collect some data from access, I have created a frame with swing componet, now when I am searching data with some variable from Access database , it is not comming, but in simple case all data are comming in differnt places in my frame.
The string which I used is
st.executeQuery("Select * from student where cid = '+st1+'"
where st1 is avariable collected some data from the frame, it is tested ok.
now i never did practice with access, please if there is any wrong .

Could you include more code please? The single statement you have provided seems fine, but we're not psychic.

Similar Messages

  • Data transfer from oracle database(external database) to sap database

    Hi Abapers,
    I have a requirment like excel data upload from oracle database(external database) to SAP database .Plz any one can help me how to create a bdc program for this requarment.
    Advance thanks you.
    Jnana

    HI
    use function module 'ASLM_EXCEL_TO_INTERNAL_TABLE' TO UPLOAD DATA FROM EXCEL SHEET TO INTERNAL TABLE. FROM THERE U CAN SAVE IT TO DATABASE USING BDC FUNCTION MODULES.

  • Loading data only from access

    Hi,
    I just want to load data only from MS Access tables to oracle tables.I already have oracle tables. Can i do this with Oracle Migration workbench.
    Thanks

    Hi,
    The Oracle Migration Workbench can be used to migrate table data from your MS Access to your migrated Oracle database schema. The data can be transferred either online, using the Migration Wizard of the workbench or offline using SQL*Loader scripts generated by the workbench, to copy data from the source database to your destination Oracle database.
    You mention that you already have the Oracle tables. Did you use the migration workbench to migrate your Access MDB file to Oracle?
    If so, then you can do the following to load your data into the Oracle database using the offline capture method:
    1. Use the Exporter for MS Access tool (omwb<version>.mde) to extract the data from your Access MDB file. This generates .DAT files containing the table data.
    2. Launch the workbench, pointing to the repository containing the source and oracle model information for your Access MDB file. This will be the repository you used during the initial migration of your Access database to Oracle.
    3. Select the Oracle Model tab, then select a user schema in the Oracle Model that you want to migrate the data to.
    4. Select the associated "Tables" node of the tree.
    5. From the "Objects" menu, select the "Generate SQL*Loader Scripts.
    6. Use the generated SQL*Loader scripts to load the Access data, contained in the .DAT files generated in step 1 above, into the Oracle database.
    For further information on the steps outlined above, please refer to Chapter 6 Migration the Database of the Oracle Migration Workbench User's Guide, specifically
    section "Transferring the Data Offline". The User's Guide can be obtained in the /omwb/docs/usersguide folder of your omwb installation, or via the Help | User's Guide of the workbench.
    I hope this helps.
    Regards,
    Hilary

  • Data transfer  from Access based programme to AR module

    We are using an access based program for cash collection, invoicing etc.An interface transferring the data end of the day to Oracle AR.
    But the interface not functioning properly. Sometimes data is not transferring, other wise wrong data is recording.Can you explain how oracle is working with other porgrammes.How I can integrate AR,PO and Inventory with Access program and ensure data transfer is correct.
    The below activities are integrated with Access Program.
    AR-Invoicing and cash collection by access program
    AP-Certain Purchase Order to be done automatically from the access program
    Inv-Stock Issue -Relating to sales is being done by Access from oracle inventory.

    Hi can you please let me know what are the concurrent request are used for transferring data from AR_PAYMENTS_INTERFACE_ALL into Oracle base tables.
    I am using Oracle 11.5.10.

  • Data extraction from Oracle database

    Hello all,
    I have to extract data from legacy database tables. I need to apply a lot of conditions on data extraction using SQL statements for getting only valid master data, transaction data, SAP date format etc. Unfortunately I don;t have a luxary of accessing legacy system data base table to create table views and applying select statements.
    Is there anyother way round by which I can filter data on source system side w/o getting into legacy system. I mean being in BW data source side.
    I am suppose to use both UD connect and DB connect to test which will workout better way of data extraction. But my question above should be same in either interface.
    This is very urgent as we are in design phase.
    Points will be rewarded immediately.
    Thanks
    Message was edited by:
            Shail
    Message was edited by:
            Shail

    Well I and eveyone know that it can be done in BI.
    I apologize that I did not mention it in my question.
    I am looking for very specific answer, if there is any trick we can do on source system side from BI. Or where we can insert SQL statements in infopackage or data source.
    Thanks

  • Can I use stored procedures to improve data retrieval from the database?

    I have been requested to get multiple pieces of data from multiple tables and return the output in an array for use in a Java program.
    Eliminating multiple calls to the database. Currently, the data is retrieved from the database in multiple steps but to eliminate
    possible bottlenecks in the future, I created several complex sql statements.
    For instance,
    In the first table there are 20 columns of data. has a column named type which can have the one of these values: line, inn, or bsc
    In the second table there are 6 columns of data. has the additional data for type line
    In the third table there are 7 columns of data. has the additional data for type inn
    In the fourth table there are 2 columns of data. has data regardless of type
    etc...
    Depending on a specific column value retrieved (inn) from the first table:
    I need to collect all 20 columns in the first table and get all the columns in third table and the columns in the fourth table, etc.
    Question: How can I remove the duplicate primary key columns without specifying for each table the column names to be returned?
    I used the wildcard SELECT * because I didn't want to have to update the retrieval methods if additional columns are added to these
    secondary tables.
    example of my sql for type inn data:
    select * from first_table f, third_table s, fourth_table t
    where (f.column1='xxxx' and f.column2='xxxx') (the 'xxxx' are passed into the sql statement)
    and
    ((s.column1=f.column1 and s.column2=f.column2)
    and
    (f.column3=t.column1));
    Currently, I've duplicated the separate sqls for each valid type found in the first table (at least a dozen types). The only difference is
    the table name. Instead of the third table I use the second table, etc.
    The MAIN Question: How can I set this up to have one sql to handle each type? I want to eliminate having over a dozen duplicated sqls. Can I
    incorporate this into a stored procedure or something? If so, how? Can anyone provide sample coding?
    Your help is very much appreciated. Thank you.
    GD

    Hi, Salah.
    Use "Exec" in your query to run procedures.
    SAPbobsCOM.Recordset     oRS;
    oRS = (SAPbobsCOM.Recordset)pCmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
    oRS.DoQuery ("EXEC YourStoredProcName");
    Triggers are not supported in SDK.
    Regards,
    Aleksey

  • IReport data retrieval from MySql database

    Hi,
    can anyone help me? i am using iReport - jasperreports to design a report using a datasource/ connections.
    i designed my report and everything works fine except that the data of the fields in mthe detail band is been retrieved more than once making the reports to have one data printed more than once(as many as possible). In my quey, i even used the "order by" as specified in the iReport manual.
    Questions: Is there to fix this so that i can have one data of a field printed only once witout repeatition in the detail band(that is, print one value then the next till the last value then stop)

    Play with the evaluated and printed when options. Another thing you should do is create a group whose evaluation string is the key from your database. every time this value changes as the records are being evaluated the detail section will be printed.

  • VM04: data transfering from specification database to table MGEF

    Hello everyone,
    I've customised for running VM04 in IMG.
    I've assigned the Hazardous Material number 11 to the Material 1666.
    I've assigned the Material 1666 to the Agent P182.
    But after running VM04, the data of Hazardous Material 11 which is in table MGEF (T-code: VM03) is still not covered by the data of P182 from specification database.
    Could anybody look for the reason for me, please?
    Thanks!

    Hello
    The MGEF approach as a very old one. Form legla perspective it is not useful any more.
    Documentation can be found here (e.g)
    http://help.sap.com/saphelp_45b/helpdata/en/35/71880186c2223ae10000009b38f984/content.htm
    I assume you have performed all necessary customizing activities? Do you receive error messages ??
    Furthermore may be take a look here:
    Need Warehouse Management Tables in SAP
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/LEWM/MMWM.pdf
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0e8c107-0435-2e10-a5bc-e295ed04049b?quicklink=index&overridelayout=true
    It is recommended from legal perspective to use eWM and not WM any more or at least the new WM approach as described in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0e8c107-0435-2e10-a5bc-e295ed04049b?quicklink=index&overridelayout=true
    With best regards
    C.B.
    Edited by: Christoph Bergemann on May 7, 2011 1:42 PM

  • Data pull from Access

    Dear All,
               I am a BI developer.I have to get some data from Microsoft Access database to SAP BI 7.0 cube. How do I proceed beginning from recognizing the source system(Microsoft Access) in BI system.
    Regards,
    Ratish
    [email protected]

    Hi
    Refer this
    Using MS Access as a Data Source for BW
    Regards
    N Ganesh

  • Data deleted from Access appears to still be cached

    Hi,
    I have a simple routine that deletes data from a table in an access database.
    All works well except I if I search on a item that has just been deleted it appears. If I perform another transaction in between then my search on the deleted data fails as it should.
    Is the data being cahced somewhere? can I stop the deleted data from appearing?
    Hope somebody can help.
    Regards,
    Adele

    So you are saying that you do this:
    1. Open a connection.
    2. Delete a record.
    3. Close the connection.
    4. Open another connection.
    5. Search for the allegedly deleted record...
    and at this point you find the allegedly deleted record?
    Also your mention of a "transaction" is a little confusing because Access does not support transactions in the strict database sense of the word.

  • Data Transfer from Oracle database 10g to Oracle database 9i

    Hi Experts,
    We need to insert records at the speed of min 10,000 records per sec in the following condition.
    Source : Oracle 10 g and Oracle 9i
    We need to select the data from Oracle 10g and insert into Oracle 9i database.
    Here we not allowing to create database link and also not allowing to create view or materialized view
    because this two database is not on same network.
    So we developing the small java application on intermediate server where we write process to get the connection of this two database servers.
    From java application we call the procedure for selecting data from Oracle 10g and insert into oracle 9i database.
    What is the best way to achieve?
    Or You also suggest any other way to achieve
    ( As per this scenario materialized view is working ? )

    Thanks freiser,
    But it create another problem as per my business logic, There will be two database server , one is online server where online user fill the form which is generated by java, spring , hibernate and using database 10 g.
    at day end i need to execute a process that transferring data from online server to offline server that is in oracle database 9i. This process is scheduled. Some security reason client do not kept this two database on same network.
    My challenge is that transfer data from online server to offline server with applying client security norms.
    I have option like
    1) Using Oracle replication method, creating materialized view on remote server , refreshing it at regular interval. but database connectivity is not contineous, should i go for that ?
    2) Write java application on intermediate server where we write process to get the connection of this two database servers. From java application we call the procedure for selecting data from Oracle 10g and insert into oracle 9i database and using flag on both data to identified how many rows are transfered and how many remaining for trasfer.
    Please tell me what is best way to acheive this ?

  • How to get the date fromat from the database?

    I am using Oracle9i database and i want to get the format of the date that is stored in the database.
    How do i do that?
    Thanks,
    Shrimon

    concatenate sy-datum0(2) '01' sy-datum4(4) into v_firstdate.
    or yo ucan use the fm:
    HR_JP_MONTH_BEGIN_END_DATE
    usage:
        call function 'HR_JP_MONTH_BEGIN_END_DATE'
             exporting
                  iv_date             = sy-datum
             importing
                  ev_month_begin_date = gv_begda
                  ev_month_end_date   = gv_endda.
    Regards,
    Ravi
    Message was edited by:
            Ravi Kanth Talagana

  • Entered DATA missing from the Database ( SEM CUBE )

    Hi,
    We are in the process of compiling the Annual Budget for 2011- 12. We
    are using BW-BPS for capturing the data.
    The Problem, is that we are not able see the Data entered in last two
    days. The users have entered the data in SEM-BPS layouts and saved it.
    Also they have executed the Queries through the Bex Analyzer which had
    the data till yesterday evening, but today if the user tries to refresh
    the query then the data is missing.
    The name of BW SEM-CUBE is "ZUCOPA_TC".
    Please suggest some solution.
    Thanks
    Nilesh

    Nilesh,
    someone might have run a delete function or another incorrectly configured planning function that deleted the data (or set records to zero).
    First, STOP any compression jobs on your planning InfoCubes. (If any compression job with zero eliminiation ran the past two days, the data is probably lost for good).
    Second, check in LISTCUBE if the data is still in the InfoCube. Make sure to select ALL fields for the output (including request id). If you are lucky, you will find all the deltas of changes that happened in the past days. If there was a delete (or similar) you should find these deltas, too. Now you can recreate the original data again (it's tedious but can be done).
    Whatever the outcome, you should implement some operational improvements to your planning applications:
    1) Create backup InfoCubes of your planning InfoCubes (fill with nightly DTP for example)
    2) Implement audit log of planning activities (see how-to guides)
    Both will give you a much better chance of recovering data in such cases.
    Good luck,
    Marc
    SAP Techology RIG

  • How to modify data recieved from the database and displayed in a DG

    Hello, it's me again with a simple question :
    i've got the SQLi request who returns multiples rows.
    In this row i have for example :
    Reward --> 1
    How to, instead of displaying  1 in the datagrid, change this value to "YES"
    I follow this lead :
    private function onResultStats(event:ResultEvent):void
                    ServerStatsArr = new ArrayCollection(event.result.source);
                    for (var i:int=0; i < ServerStatsArr.length;i++)
                        if (ServerStatsArr[i].abonnement ==  304){
                            ServerStatsArr[i].abonnement = 'Premium';
                        }else{
                            ServerStatsArr[i].abonnement = 'Non';   
                        if (ServerStatsArr[i].transparence ==  1) {
                            ServerStatsArr[i].transparence = 'Oui' ;
                        }else{
                            ServerStatsArr[i].transparence = 'Non' ;
                    ServerStatsArr.refresh();
    Why this method is working for abonnement when (ServerStatsArr[i].abonnement ==  304) it displays Premium but it's NOT working for transparence ?
    i tested (ServerStatsArr[i].transparence ==  1) and (ServerStatsArr[i].transparence ==  '1')
    Thank you

    hi Again,
    private function setLabel(item:Object,column:DataGridColumn):String
    switch(column.dataField)
    case "transparence":
    if (item.transparence == "1")
    return ("yes")
    else
    return ("no")
    break;
    case "abonnement":
    if (item.abonnement == "304")
    return ("premium")
    else
    return ("none")
    break;
    default:
    return("");
    and the adjustments to your grid - add the labelfunction to the following columns
    <mx:DataGridColumn headerText="transparence" dataField="transparence" labelFunction="setLabel"/>
    <mx:DataGridColumn headerText="abonnement" dataField="abonnement" labelFunction="setLabel" />
    I hope we get a distinction credit for this assignment ...
    David.

  • Trying to display results from access database query on a JSP

    Seem to be having real difficulty with this one, i keep getting a null pointer exception :(. Wondered if anyone could point me to any examples of displaying the results on jsp. The database is connected, as i can display the query on netbeans, but just not on a jsp.

    I think it would be good if we had a section in these forums for pre-canned answers to the same questions that come up again and again. It would save time.
    Here is a rough outline for using JSP:
    * Read a JSP book.
    * The JSP page (View in MVC) should get all the data it needs to display from a useBean and/or request.getAttribute().
    * The JSP page should not have any business logic. Its purpose is to display data only (and have some submit buttons such as 'update').
    You can do some basic client side validation using javascript if you want. Because there is no business logic in it, you can easily debug
    your code in the servlet or business logic. You can't set breakpoints in JSP and examine data easily.
    * When you click the submit button, all data from <input type="text" tags, etc is put into request scope via name/value pairs.
    * Submit the JSP page <form tag to a servlet (Control in MVC).
    * The servlet reads the name/value pairs of data from the JSP page via request.getParameter()
    * The servlet should then instansiate a business object (Model in MVC), passing the data it got from the page to the business logic.
    Example: ProcessPage processPage();
    if(request.getParameter("updateButtonClicked"))
    processPage.updateData(data from the jsp page)
    * The business logic should instansiate a separate database object (DAO) to get data to/from the database. Business logic should not have sql in it.
    Business logic should not generate html. Business logic should not have request objects in it.
    * The business logic should return data to the servlet that in turn will put it in request scope via request.setAttribute() so the JSP page can draw itself.
    * The servlet should then call up the approprate JSP page.

Maybe you are looking for

  • Filter data based on the value of sorce field in mapping

    Hi, I have a scenario (IDOC to file) where i have to move data to target file,  only when one of the source fields has particuler value. Otherwise skip the record, no need to write into output file. Please let me know how to handle it in mapping, wit

  • Playing music from internet thru itunes

    can't find ip address for grateful dead radio from their website and how do i get it to play thru itunes

  • Oracle 11.2.0.1.0 Incomplete Installation

    Enterprise manager configuration succeeded with the following- Error stating Database Control.Please execute the following command(s) 1) Set the environment varibale ORACLE_UNQNAME to Database unique name 2)U:\app\acer\product\11.2.0\dbhome_1bin\emct

  • How to validate a shuttle item in oracle apex

    Hello, I am having a shuttle item in the page . I want to validate the shuttle . am using oracle apex 3.2.1 on oracle 11g. I want to raise an alert if the user not selected value from shuttle else display the selected value in alert . please help me

  • Function Keys are not working on my Satelite C50-A-1DV

    Hi, I just installed a bios update (1.30) and right after I noticed I was unable to adjust the brightness of my screen via the special keys (F2 and F3). Also, I am unable to use the Synaptic pointing device toggle (F4), monitor selection (F5), Mute (