MS Access - how to get query

Suppose I've made MS Access database and want my Java application to read query objects from that database.
I'd like to get them as an array of Strings or as an collection of other type of objects.
How to get them?
I'm using JBuilder 4 Ent.

I don't understand the question.
You use JDBC to communicate with the database. You create a query. You extract the data from the query and put it into whatever you want - like a collection. The JDBC tutorials explain how to use JDBC - is that what you want to know?

Similar Messages

  • How to get query result in comma dilimited text or excel file?

    Does anybody know how to get query results in comma delimited
    text file or excel file, I tried spool abc.txt, but the result
    showed some ------ lines
    Thanks

    Try doing this in your sql scripts
    set heading off
    set pagesize 0
    set linesize 4000
    set feedback off
    set verify off
    set trimespace on
    set colsep ","
    spool output.txt
    select * from dual (or whatever you are querying
    spool off
    There may be a couple other set statement that you could add but
    this should get you started in the right direction

  • How to get query execution time without running...?

    Hi ,
    I had one requirement .... as follows ......
    i had 3 sql statements . I need to execute only one sql which execution time is very less.
    Can any one help me , how to get query execution time without running that query and without using explain plan..?
    Thanks,
    Rajesh

    Kim Berg Hansen wrote:
    But you have ruled out explain plan for some reason, so I cannot help you.OP might get some answers if query was executed before - but since restart. Check V$SQL dynamic performance view for SQL_TEXT = your query. Then ROUND(ELAPSED_TIME / EXECUTIONS / 1000000) will give you average elapsed time.
    SY.
    Edited by: Solomon Yakobson on Apr 3, 2012 8:44 AM

  • How to get query response time from ST03 via a script ?

    Hello People,
    I am trying to get average query response time for BW queries with a script (for monitoring/historisation).
    I know that this data can be found manually in ST03n in the "BI workload'.
    However, I don't know how to get this stat from a script.
    My idea is to run a SQL query to get this information, here is the state of my query :
    select count(*) from sapbw.rsddstat_olap
    where calday = 20140401
    and (eventid = 3100 or eventid = 3010)
    and steptp = 'BEX3'
    The problem is that this query is not returning the same number of navigations as the number shown in ST03n.
    Can you help me to set the correct filters to get the same number of navigation as in ST03n ?
    Regards.

    Hi Experts,
    Do you have ideas for this SQL query ?
    Regards.

  • How to get Query response Time?

    II am on BI 7.0. I ran some queries using RSRT command. I want to find how much time the queries took.
    I went to
    st03 -> expert mode -> BI system load-> select today / week/month according to the query runtime day
    I do not see any Info Providers. Query was on a cube so why no Info Providers.
    Does something have to turned on InfoPorvider to show.
    When I look  in RSDDSTAT_OLAP table, I do see many rows but cannot make any sense. Is there some documentation on how to get total  query time from this table?
    Is there any other way to get query response time?
    Thanks a lot.

    HI,
    why not use RSRT ? You can add database statistics option in "Execut & Debug" and you get all the runtime metrics of your query
    In transaction RSRT, enter the query name and press u2018Execute +Debugu2019.
    Selecting u2018Display Statistics Datau2019 .
    After executing the query will return a list of the measured metrics.
    The event id / text describes the steps  (duration in seconds):
    "OLAP: Read data" gives the SQL statements repsonse time (ok - because the SAP
    application server acts as an Oracle client a little network traffic from the db server is included,
    but as far as you not transferring zillions of rows it can be ignored)
    But it gives you much more (i.e. if the OLAP cache gets used or not )...
    In the "Aggreagate statistcs" you get all the infoproviders involved in that query.
    bye
    yk

  • How to get query name?

    Hi:
    There is a report 'AQFLINDIA_FA====Z_REGISTER====',I think it's created by Query.And how to get the 'User group' / 'Infoset' / 'Query name'?
    Thanksss.

    hi,
    they will not be stored in any table but we can identify by program name itself.
    if your program name is AQFLINDIA_FA====Z_REGISTER====  then your query name is Z_REGISTER.
    from sq01 you can get infoset name of that query and from sq02 you can get user group name.
    also check these tables.
    AQGIDOC
    AQGQDOC.

  • How to get Query from bw?

    I use BI XMLA Connector to connect BW System,I want to get QUERY.But I only get the DATA.I want to get the Query completely,
    include style,navigation,and so on.not a table.
    WHAT CAN I DO?

    HI,
    It is seemed rather odd that WEBI does not use the MASTER DATA search that is defined in the BEX query, the UNV based on.
    We are talking about objects that have less than 200 values in the MASTER DATA, usually it is an Authorization Object, that the User needs to select from it during runtime.
    We can also change the maximum value listed from MASTER DATA to be higher than 200.
    This is very poor performance to get the LOV after several minutes instead of few seconds.
    >> first of all the BI authorization you configure are not relevant for master data unless you are using authorization variables and BEx does a paging of the values - it does not retrieve all values. it does retrieve the values in chunks
    Using delegating search is not always possible when the user needs to select random values.
    Although delegate search improved getting the LOV from 5 minutes to 2 minutes (in our case), still waiting for 2 minutes,
    just to get the LOV is very long time for an enduser. (and now he has to wait for the WEBI query to be executed).
    >> using delegated search is possible. and delegated search means you are not retrieving a list of values at all so the 2 min that you mentioned indicates you didn't configure it properly.
    Ingo

  • How to get Query Results based on Analysis Authorization Ranges????

    Hi Experts,
    I have gone through the lot of SDN Links, however not able to find the answer to my question.
    I have an Authorization Issue, “NO Authorization “
    Error : EYE 007 ( Insufficient Authorizations )
    <b>Here is the issue:</b>
    Need to see the complete query result when I gave the range in Analysis Authorization for Controlling Area 001-005. Controlling Area is auth relevant and right now a variable is inserted in the query for it. If I select Controlling Area 001, the result for Controlling Area 001 is displayed in query. If 002 then also displayed. If I do not enter anything, then I get the <b>Eye 007 error message</b>.
    I am not sure how do I display/authorize the entire result in the query for all the Controlling Areas, I have authorized user to see??
    <b>Its really urgent, please help..!</b>
    Here are the logs:
    Authorization Check Log
    Date and Execution Time (Local Server)
    Execution Date: 06.09.2007
    Execution Time: 14:48:41
    Executed Query: 0CCA_C11/GBCCA_MP01_Q0002_AP
    Executed by User ZBI_TEST_001
    Executed with Analysis Authorizations of Another User ZBI_TEST_001
      InfoProvider Check  
    Building the Buffer...
    ...Buffer Built
    Are there authorizations for accessing InfoProvider 0CCA_C11 with activity 03?
    Authorization exists for general access to InfoProvider 0CCA_C11 with activity 03 
      InfoProvider Check  
    Authorization exists for general access to InfoProvider 0CCA_C11 with activity 03 
      Relevant Characteristics for Detailed Authorization Check  
    (Characteristics with Full Authorization Are Not Listed!)
      List of Effective Authorization-Relevant Characteristics for InfoProvider 0CCA_C11:  
    0CO_AREA 
    0TCAACTVT 
      Relevant Characteristics for Detailed Authorization Check  
    (Characteristics with Full Authorization Are Not Listed!)
      List of Effective Authorization-Relevant Characteristics for InfoProvider :  
    List Is Empty:
      There Are No Characteristics That Have to Be Checked in Detail  
      Authorization Check  
      Detail Check for InfoProvider 0CCA_C11  
      Preprocessing:  
    Selection Checked for Consistency, Preprocessed and Supplemented As Needed
    Subselection (Technical SUBNR) 1
    Check Node Definitions and Value Authorizations...
    Node- and Value Authorizations Are OK
    End of Preprocessing
    Filling the Buffer...
    ...Buffer Filled
      Main Check:  
      Subselection (Technical SUBNR) 1  
    Supplementation of Selection for Aggregated Characteristics
      No Check for Aggregation Authorization Required  
    Following Set Is Checked  Comparison with Following Authorized Set  Result  Remaining Set 
    Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    CO_AREA = '0003'
    AND TCAACTVT = '03'
    Characteristic  Contents 
    0CO_AREA  I BT 0001 0005
    0TCAACTVT  I EQ 03
    I EQ 16
    Authorized   
      Subselection (SUBNR) Is Authorized  
      Authorization Check Complete  
      Authorization Check  
      Detail Check for InfoProvider 0CCA_C11  
      Preprocessing:  
    Selection Checked for Consistency, Preprocessed and Supplemented As Needed
    Subselection (Technical SUBNR) 1
    Check Node Definitions and Value Authorizations...
    Node- and Value Authorizations Are OK
    End of Preprocessing
    Filling the Buffer...
    ...Buffer Filled
      Main Check:  
      Subselection (Technical SUBNR) 1  
    Supplementation of Selection for Aggregated Characteristics
      No Check for Aggregation Authorization Required  
    Following Set Is Checked  Comparison with Following Authorized Set  Result  Remaining Set 
    Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    TCAACTVT = '03'
    Characteristic  Contents 
    0CO_AREA  I BT 0001 0005
    0TCAACTVT  I EQ 03
    I EQ 16
    Partially or Fully Authorized (Intersection)   Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    ( CO_AREA < '0001'
    OR CO_AREA > '0005' )
    AND TCAACTVT = '03'
    Value selection partially authorized. Check of remainder at end
    Following Set Is Checked  Comparison with Following Authorized Set  Result  Remaining Set 
    Characteristic  Contents 
    0CO_AREA
    0TCAACTVT
    SQL Format:
    ( CO_AREA < '0001'
    OR CO_AREA > '0005' )
    AND TCAACTVT = '03'
    Characteristic  Contents 
    0CO_AREA  I BT 0001 0005
    0TCAACTVT  I EQ 03
    I EQ 16
    Not Authorized   
    All Authorizations Tested
      Message EYE007: You do not have sufficient authorization  
      No Sufficient Authorization for This Subselection (SUBNR)  
    Following CHANMIDs Are Affected:
    184 ( 0CO_AREA )
      Authorization Check Complete  

    Hi,
        Have you defined the vaule for 0CO_AREA as BT 001-005 in you Authorization for 0CO_AREA.Also how have you defined your Authorization Variable on the query? Have you define as select options or interval? I thing you need to define it as interval or select options.
    Hope it helps,
    Cheers,
    Balaji

  • WAD: How-to get query name and pass to URL

    Hi,
    The task: In a BI 7.0 web template - get the technical query name and use that to open a URL in the format http://<MYURL>&DOCUMENTATION=<QUERYNAME>. So:
    1) User clicks an icon
    2) Get technical name of query
    3) Open the documentation for that query using a URL
    How can this be done? Do I have to use the Custom Extension web item and implement a new class using the interface IF_BICS_CONS_WEBITEM_CUST_EXIT? If so, do you have an example of how this can be done? OR even better is there an easier way to accomplish this?
    Thanks in advance,
    Jacob

    Hi Daniel,
    you could get the query name in ABAP code, also. Here is a snippet from the execute method. The Query name should be in l_sx_view at the end.
    best regards
    Arne
    TYPE-POOLS: 
      rrx1.
    DATA:
      l_string TYPE string,
      l_xml TYPE string,
      l_xml_xstring TYPE xstring,
      l_sx_view TYPE rrx1_sx_view,
    * Line Feed, CR
      c_lf TYPE string,
      l_h_lf(2) TYPE x VALUE '0D0A',
      l_r_conv TYPE REF TO cl_abap_conv_in_ce.
    * Get the line feed and carriage return for unicode
      l_r_conv = cl_abap_conv_in_ce=>create( input = l_h_lf ).
      l_r_conv->read( IMPORTING data = c_lf ).
      DATA:
      l_t_data_providers TYPE cl_bics_cons_webitem_util=>tn_t_data_provider,
      l_s_data_providers TYPE cl_bics_cons_webitem_util=>tn_s_data_provider,
      l_r_variable_container TYPE REF TO if_ixml_node.
      CLEAR e_xml.
      TRY.
    *     All data passed to the webitem exit is hold in I_XML using XML.
    *     The XML is UTF-8 encoded. You can convert the UTF-8 xstring
    *     to a simple ABAP string by calling the following method:
    *     ==================================================================
          CALL METHOD cl_bics_cons_webitem_util=>utf8_xstring_2_string
            EXPORTING
              i_utf8_xstring = i_xml
            RECEIVING
              r_string       = l_xml.
    *     The XML includes sections about the used data provider and about the
    *     variable container. The following method parses the XML and
    *     provides the IF_IXML_NODE instances for data providers and for the
    *     variable container.
    *     ==================================================================
          CALL METHOD cl_bics_cons_webitem_util=>parse_xml
            EXPORTING
              i_xml                  = i_xml
            IMPORTING
              e_t_data_providers     = l_t_data_providers
              e_r_variable_container = l_r_variable_container.
    * 01 Get name of first Data Provider
          READ TABLE l_t_data_providers INDEX 1 INTO l_s_data_providers.
          CALL TRANSFORMATION bics_cons_webitem_filter_by_dp
          PARAMETERS dataprovider = l_s_data_providers-name
          SOURCE XML i_xml
          RESULT XML l_xml_xstring.
          CALL METHOD cl_bics_cons_state_converter=>convert_xml
            EXPORTING
              i_xml     = l_xml_xstring
            IMPORTING
              e_sx_view = l_sx_view.

  • How to get query text from reference cursor

    Oracle 9.2.0.5
    create or replace procedure test3
    is
       lcur sys_refcursor;
       lquery varchar2(2000);
    begin
       OPEN lcur FOR
          SELECT CONTRACT_ID FROM CONTRACT;
       lquery := lcur.Query;     -- <= Pseudocode           
    end;Basically, if someone passes a reference cursor, how can I get the "text" of the cursor. I want to pass it to DBMS_DESCRIBE.PARSE...so that I eventually call DBMS_SQL.DESCRIBE_COLUMNS.
    Thanks,
    Jason

    Do you have a code example?
    Ideally, I'd like to use Pl/SQL only, but if I have to do it in Java, I will.
    Thanks,
    Jason

  • How to get query output data

    Hi,
    I have created procedure to analyze tables. I tried to get output but its not displaye in a proper way. I want to output as like as a query output.
    create or replace procedure tablestats
    as
    begin
    for cur in (SELECT OWNER,TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY HH24:MI:SS')FROM DBA_TABLES WHERE OWNER='SCOTT') LOOP
    dbms_output.put_line(cur.owner||' '||' '||cur.table_name||' '||cur.NUM_ROWS||' '||cur.BLOCKS||' '||cur.AVG_ROW_LEN);
    DBMS_STATS.GATHER_TABLE_STATS('scott',cur.table_name);
    end loop;
    end;
    Output came lke this:
    SQL> exec tablestats
    SCOTT  DEPT 4 4 20
    SCOTT  EMP 14 4 38
    SCOTT  SALGRADE 5 4 10
    SCOTT  SERVICE 8 5 12
    SCOTT  BONUS 0 0 0
    PL/SQL procedure successfully completed.
    Acually i want output like..
      1* SELECT OWNER,TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY HH24:MI:SS') Last_Analyzed FROM DBA_TABLES WHERE OWNER=
    'SCOTT'
    SQL> /
    OWNER                          TABLE_NAME                       NUM_ROWS     BLOCKS   AVG_ROW_LEN   LAST_ANALYZED
    SCOTT                          DEPT                                             4                   4                 20                   11/27/2013 19:10:44
    SCOTT                          EMP                                            14                   4                 38                    11/27/2013 19:10:44
    SCOTT                          SALGRADE                                   5                   4                 10                    11/27/2013 19:10:44
    SCOTT                          SERVICE                                      8                   5                 12                     11/27/2013 19:10:44
    SCOTT                          BONUS                                        0                    0                  0                      11/27/2013 19:10:44
    Please help me.
    Thanks,

    Hi,
    As John said, PL/SQL doesn't give you any of the nice formatting features that front end tools, like SQL*Plus, provide.  If you want headers, you have to say exactly what they are, and write them yourself.  If you want the columns to line up, you have to decide how long they will be and pad them yourself.  It's a lot of work.
    Why not let PL/SQL do the things that only PL/SQL can do, and let SQL*Plus do the things it does well?  Have your procedure  or function return a cursor, which you can then diplay in SQL*Plus, or write a piplined function, that you can use in queries where SQL*Plus can format the results.
    The query you posted can eaisly be done directly from SQL*Plus, of course.  I assume you posted a very simple example, becuase your question is just about display.  If you don't absolutely need PL/SQL, don't use PL/SQL.  What I said above applies if you really do need PL/SQL.

  • How to get query output in javascript

    i have a transaction with one output parameter.
    i have created an xacute query and referenced the transaction and its output parameter.
    now how do i get the value of that output parameter in a script in irpt file.
    i tried creating an applet.
    <APPLET NAME="executeApplet" CODEBASE="/XMII/Classes" CODE="iBrowser" ARCHIVE="illum8.zip" WIDTH="100" HEIGHT="100" MAYSCRIPT>
    <PARAM NAME = "QueryTemplate" VALUE="RH_DASHBOARD/Execute">
    </APPLET>
    i tried with this code in the script
    document.executeApplet.getQueryObject().getOutputParameter()
    but this gave  me the output parameter name not the value.
    i just need the value of the output parameter in the java script.

    Hi Rohit,
    Try using getBrowserObject().getSelectedItemAt(1).  Or you can use any of several other methods to get the value of your output.  If you are in 12.1 or greater, go to the workbench and open your webpage.  At the bottom of the window with the html and javascript, you will see an elipse of 5 dots.  Click and hold to drag that line up.  That will expose the script assistant when you can browse for the other methods available.
    Regards,
    Mike

  • How to get query from a record group

    HI
    do we get the query from which record groupis based on in oracle forms with out checking in to the properties.

    Hello,
    No, you cannot get the initial SELECT order from the Record Group.
    Francois

  • How to get Query Names in webi Report ??

    Hello All,
    I'm trying to pull data from different data sources like accdb,Oracle,DB2,MDB,xls files . I pulled the data successfully by merging all queries.But I was stuck with getting the query names in report ...can some one guide me in this ?? I used data provider () but getting 1 query name along with my universe name.
    thanks in advance,
    Lavanya.

    Hi Lavanya,
    Are you interested to know the data sources of the queries or just the query names?
    To know the Query Name, you can use DataProvider( ) function; however, in case you wish to know the data source, you can use Connection( ) function.
    Regards,
    Yuvraj

  • How to get  query used in LOV

    Hi all,,,
    Assume that my lov is listing (eg empno, ename,dept) when i query for empno. Actually i want to change that empno to deptno ie(deptno,ename,dept) when i queried for empno. How to accomplish this. I think by form personalization we can do ie. BY creating own record group and replacing that with old one, we can do. But i want to know the query used in old record group. How to accomplish this task. plz help me.. Its urgent ... plz... Advance thanks. Any other approach most welcome.. Plz

    Hi all,,,
    Assume that my lov is listing (eg empno, ename,dept) when i query for empno. Actually i want to change that empno to deptno ie(deptno,ename,dept) when i queried for empno. How to accomplish this. I think by form personalization we can do ie. BY creating own record group and replacing that with old one, we can do. But i want to know the query used in old record group. How to accomplish this task. plz help me.. Its urgent ... plz... Advance thanks. Any other approach most welcome.. Plz

Maybe you are looking for