Getting the expression used in the procedure(query)

I am workng with MS Access 2000. I have procedure(query) by the name BILL, created on a table Order Details as:
SELECT [UnitPrice], [Quantity], [UnitPrice]*[Quantity] AS BillValue FROM [Order Details];
The dbmd.getColumns(null, null, "BILL", "%") gives columns UnitPrice, Quantity and BillValue.
I am interested in getting the Expression [UnitPrice]*[Quantity] used in the query to get BillValue.
Is there a way out?

Huh?
You want the value? Then you use getDouble(3).
You want want the return column is called? Then you use the metadata.
You want a SQL parser? Then you either write your parser or find one.

Similar Messages

  • How to get the procedure/query details for the corresponding transaction id

    Hi,
    Is it possible to know the transaction details like (procedure/query) from the correcponding local transaction ID? (for eg:10.10.50935)
    I am working on ORA-01591 issue (lock held by in-doubt distributed transaction) and got the details of in-doubt transactions from dba_2pc_pending view. Further I would like to get additional details about the procedure name and query who is triggering the issue.
    Thanks

    Hi Sybrand,
    The response is not of much help. Can you please tell me in more detail.
    Suppose a transaction is completed long back (say 5 days ago) and I have a transaction id with me. I would like to know the correcponding procedure/query associated with that transaction id.
    Is it really possible to find out old transaction details from any view?

  • How to get the Actual Query of View Object

    Hi all,
    I have a standard. I need to modify the query of the VO attached to a picklist based on responsibility. I am able to achieve my requirement but it is getting reflected for all the responsibilities even though i extended the controller for a particular responsibility. I used setQuery() to change the query of my VO. When checking "About this page". The code i added also shown in the page. Now i want to get the actual query to the VO before the controller is extended so that i can set the modified query or actual query based on my responsibility. Kindly share your knowledge.
    Regards,
    Pradeep

    Hi,
    I guess following query will not work ,Why use 2 where clauses.
    SELECT * FROM (select NVL(VENUE_NAME,' ') "Venue",
    NVL(VENUE_CITY,' ') "City",
    NVL(COUNTRY_DESC,' ') "Country",
    EVENT_NUMBER
    From NS_EVENT_VENUE_DETAILS,NS_COUNTRY_MASTER WHERE COUNTRY_CODE = VENUE_COUNTRY) QRSLT WHERE (QRSLT.EVENT_NUMBER = 1539
    you can as following using bind variable.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGDGIJH

  • Getting "the procedure entry point CGImageRelease could not be located in the dynamic link library CoreGraphics.dll" error when starting Itunes. Haved reloaded many times and still the error.

    Getting "the procedure entry point CGImageRelease could not be located in the dynamic link library CoreGraphics.dll" error when starting Itunes. Haved reloaded many times and still the error.

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    Does iTunes launch properly now?
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes

  • Logging level to get the physical query

    Hi All,
    Can anyone let me know , what log level i have set it up, so that I can get the physical query for BI Answers request.
    Thanks
    S

    hi,
    Logging Levels
    Level 0
    No logging.
    Level 1
    Logs the SQL statement issued from the client application.
    Logs elapsed times for query compilation, query execution, query cache processing, and back-end database processing.
    Logs the query status (success, failure, termination, or timeout). Logs the user ID, session ID, and request ID for each query.
    Level 2
    Logs everything logged in Level 1.
    Additionally, for each query, logs the repository name, business model name, presentation catalog (called Subject Area in Answers) name, SQL for the queries issued against physical databases, queries issued against the cache, number of rows returned from each query against a physical database and from queries issued against the cache, and the number of rows returned to the client application.
    Level 3
    Logs everything logged in Level 2.
    Additionally, adds a log entry for the logical query plan, when a query that was supposed to seed the cache was not inserted into the cache, when existing cache entries are purged to make room for the current query, and when the attempt to update the exact match hit detector fails.
    Do not select this level without the assistance of Technical Support.
    Level 4
    Logs everything logged in Level 3.
    Additionally, logs the query execution plan. Do not select this level without the assistance of Technical Support.
    Level 5
    Logs everything logged in Level 4.
    Additionally, logs intermediate row counts at various points in the execution plan. Do not select this level without the assistance of Technical Support.
    Level 6 and 7
    Reserved for future use.
    Hope this helps,
    cheers,
    vineeth

  • How do I get the procedure name

    Hi,
    With help of our application we are updating one table (P_Balance) in this account status and date through some procedures.
    in some situation only account status column get proper value, but date column having NULL value.
    Now we decided to track this, through which procedure this date column get updated null value.
    For this I decided to write one trigger for the table "P_BALANCE" through which procedure this update is happening.
    How do I get the procedure name.

    You could use DBMS_UTILITY.FORMAT_CALL_STACK and do it. Something like this.
    SQL> create table track_call_stack
      2  (
      3     program_name varchar2(30),
      4     call_stack varchar2(4000)
      5  );
    Table created.
    SQL> create table t
      2  (
      3    no integer
      4  );
    Table created.
    SQL> create or replace trigger t_trig before insert on t for each row
      2  begin
      3    if :new.no is null then
      4       insert into track_call_stack
      5       (
      6          program_name,
      7          call_stack
      8       )
      9       values
    10       (
    11          'T_TRIG',
    12          dbms_utility.format_call_stack
    13       );
    14    end if;
    15  end;
    16  /
    Trigger created.
    SQL> insert into t values (null);
    1 row created.
    SQL> select * from track_call_stack;
    PROGRAM_NAME                   CALL_STACK
    T_TRIG                         ----- PL/SQL Call Stack -----
                                     object      line  object
                                     handle    number  name
                                   3a7ac0ea8         1  anonymous block
                                   3a2bb9d78         3  ARBORU.T_TRIG
    SQL> create or replace procedure p1
      2  as
      3  begin
      4      insert into t values (null);
      5  end;
      6  /
    Procedure created.
    SQL> create or replace procedure p2
      2  as
      3  begin
      4      insert into t values (1);
      5      p1;
      6  end;
      7  /
    Procedure created.
    SQL> exec p2;
    PL/SQL procedure successfully completed.
    SQL> select * from track_call_stack;
    PROGRAM_NAME                   CALL_STACK
    T_TRIG                         ----- PL/SQL Call Stack -----
                                     object      line  object
                                     handle    number  name
                                   3a7ac0ea8         1  anonymous block
                                   3a2bb9d78         3  ARBORU.T_TRIG
    T_TRIG                         ----- PL/SQL Call Stack -----
                                     object      line  object
                                     handle    number  name
                                   3a7ac0ea8         1  anonymous block
                                   3a2bb9d78         3  ARBORU.T_TRIG
                                   3a2b32a10         4  procedure ARBORU.P1
                                   3a61db6a8         5  procedure ARBORU.P2
                                   3a653c3a0         1  anonymous block

  • How to get the individual query terms?

    Is there a way in Intermedia to get the individual query terms that are expanded by intermedia after a query using stemming or fuzzy matching.
    Example: a query like "$distinguish" expands to distinguish, distinguished and distinguishes.
    CTX_DOC.MARKUP does the work but returns the complete contents (with markup) of the indexed column in stead of the query terms only.

      1  with t as
      2  ( select 1 day_from, 3 day_to from dual)
      3  select day_from +level -1 day_from, day_to
      4  from t
      5* connect by level <= day_to
    SQL>
    SQL>/
      DAY_FROM     DAY_TO
             1          3
             2          3
             3          3

  • Is there a way get the actual query that was excecuted

    I have a large query with lots of <cfqueryparam 's
    Is there a way get the actual query that was excecuted so I can debug it/ find out what the problem is, no sql error just logic error

    Personally, I think the easiest way is to use the powerhouse combo of Firebug and ColdFire. (Sorry if you already know this) Firebug is a plugin for Firefox for debugging (great JavaScript debugger in it!). ColdFire is a ColdFusion debugger that hooks into Firebug.
    Firebug: https://addons.mozilla.org/en-US/firefox/addon/1843
    ColdFire: http://coldfire.riaforge.org/
    There are a couple of steps to installing ColdFire on your server (in addition to the Firefox plugin) but it's just a matter of copying a CFM file into a particular folder on your server's CF install. Then you just select ColdFire as the debugging output option in the CF Administrator and you're good to go (the ColdFire zip archive has an install doc).
    Once you're using it, ColdFire lets you see all your queries: the actual SQL, the execution time, whether or not it's cached, etc.
    While there are other techniques for seeing your SQL, I've always found ColdFire to be the easiest to use.

  • How to get the SQL Query statement of a Search Form ?

    Hi all,
    We have a requirement to send the query result of an ADF Search Form into report application (Crystal rpt).
    Crystal can accept data source as query statement. SO I think of getting the exact query statement "generated" by the ADF Search form and send it to crystal.
    Is this possible ?
    Thank you very much,
    xtanto

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • Get the last query from the current user

    Is there a way to get the last query of the current user, so every query could be log with a database trigger?
    Let's just say I execute:
    DELETE xxxx;
    I tried :
    SELECT T.SQL_TEXT FROM V$SQLAREA T where ADDRESS=(SELECT prev_sql_addr FROM v$session where audsid=userenv('sessionid'));
    But the result of this query is :
    'SELECT T.SQL_TEXT FROM V$SQLAREA T where ADDRESS=(SELECT prev_sql_addr FROM v$session where audsid=userenv('sessionid'))'
    Is there a way to execute a query that would return :
    'DELETE xxxx'
    Thanks

    You could join SQL_ADDR in v$session with ADDRESS in v$sqlarea to determine the SID that executed that SQL statement last. Note that PREV_SQL_ADDR in v$session will indicate the previous SQL he executed. Though you would have to look at these tables very often to get all SQL statements issued. One note here, I think if a different user ran the SAME SQL with just bind var differences the SQL_AREA will only show the last user’s information that executed it.
    BTW - it will show deletes also...

  • Itunes not getting started getting " The procedure entry point AVCF playerenabledhardwareaccelerationkey could not be located in the dynamic link libraryAVFoundationCF.dll how to fix?

    itunes not getting started getting " The procedure entry point AVCF playerenabledhardwareaccelerationkey could not be located in the dynamic link libraryAVFoundationCF.dll how to fix?

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Where and how do I get the SQL Query used by the Microsoft Generic Report Library - Alerts?

    Background:
    I'm tasked with the following: I need to create a new Report and the SQL
    The two canned reports that I can pattern after are: Microsoft Generic Report Library
    - Alerts (there is also an alert detail report that can be chosen within the alert report that we may want to use instead)
    - Most Common Alerts
    I'm trying to do this:
    Add another parameter to search on customfield3.
    It should be able to report on all alerts that were assigned to the specific team for the time period along with the top 10 (most common alerts) assigned to the team for the time period.
    Choose as the objects (group) all servers, but Imay need to adjust the report to just look at all alerts without having to provide objects or a group
    The struggle I'm having is: I know SQL. I know how to create an RDL file.
    But Where are the RDL files for the canned reports so I can modify the canned RDL and modify its SQL and forms?
    What is the SQL/ where can I find the SQL used for the Generic Report Library -> Alerts

    Easy but you need to extract it from Microsoft Generic Report Pack. 
    So.. the procedure is as follows:
    1) You export and unseal Management Pack from your SCOM using
    Boris's OpsgMgr tools (MPViewer
    2.3.3)
    2) Ok you've got unsealed xml, now the tricky part, use
    MpElementsExtract tool, example of usage:
    MPElementsExtract.exe <MP.xml> /ex /destination:<destination>
    That you way you get several folders out of mp:
    DWScripts, DWSubScripts, LinkedReports, ReportResources, Reports
    Take a look into content of first 2, there will be pure sql scripts, and rdl's are in Reports folder :)
    Other way is to just use SQL profiler and catch SQL query while generating report. 
    --- Jeff (Netwrix)

  • How to get the sql query result?

    Hi,
    Currently I am using LV2012 to connect a Oracle database server. After the installations/settings for Oracle Express and Oracle ODBC driver done.
    I am sucessfully to use the SQL command to query the data through my window command prompt. 
    Now the problem is, how I do the same task in Labview by using the database connectivity toolkits?
    I have build a VI for query as attached, but i have no idea what pallete to use to get the query result.
    Please help me ~~
    Solved!
    Go to Solution.
    Attachments:
    Query.vi ‏9 KB

    Here is a piece of code I use to test SQL commands, you can use the part that retrieves sql results.
    It is also possible to get the column headers back, but that is for next lesson!
    Attachments:
    RunSQLCommand.vi ‏30 KB

  • How to get the original query string in an event receiver when dialogs are enabled

    I have scenario where I am adding a document to a document library which has an external data column on it. My goal for this column is to have it automatically populated with an appropriate value based on original query string to the page. The general
    idea is that I am on a custom page that has various webparts on it including a view of my document library that is context sensative based on the query string, and I want to use that context sensitivity not just to filter the list but also when adding documents.
    I have been searching around for solutions to this problem all day and have gotten this far:
    I have an event receiver attached to my document library that handles the ItemAdded event syncronously (as such I have the new list item available to me). In that event receiver I am able to set the column values as required. Where I am stuck is on getting
    the value from the query string that I need to actually set as the column value.
    Based on:
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/8cfcb299-9a55-4139-86ec-0b53b2922a54 and several similar articles/posts I have been able to get the original source Url with the query string I want via the following
    code in my event receiver:
    private HttpContext context;
    public EventReceiver1()
    context = HttpContext.Current;
    public override void ItemAdded(SPItemEventProperties properties)
    var originalQueryString = context.Request.QueryString["Source"];
    // Parse the query string and use the value ...
    The problem is that this solution breaks down if the dialogs are turned on under the advanced settings for the list. The reason the solution fails is because the "Source" query string parameter goes away and is replaced by "IsDlg" set to a value of "1".
    Does anyone know how to get past this hurdle? Any help would be greatly appreciated.

    Hi Stuart,
    The reason I'm looking for "Source" in the query string is because that is something I found to be reliable when the Dialogs are turned off. I've dug around pretty deep in the Request object to see if anything had the data I was looking for and unfortunately
    it doesn't appear to be there. The
    context.Request.QUeryString.ToString()
    returns a rather simple one of:
    List=%7b43ECDCB0-8440-4652-B067-AA20481779D7%7d&RootFolder=&IsDlg=1
    and the
    context.Request.UrlReferrer.Query.ToString()
    has the same value.
    I suspect this is due to the dual step process that takes place in adding an item to a document library where the first modal popup (which I suspect likely has the information I need) gives you the opportunity to browse to your file and then the second
    dialog (maybe this is getting brought up as a result of another request which is now referring back to the original request that brought up the first dialog?) where you edit your properties.
    Thanks for the try though, if you've got anything else I'd love to hear it.

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query :
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS FROM [ZTEST_CUB/REP_20100723200521]  failed to execute with the error Unknown error. (WIS 10901).
    I have gone through many threads related to this error. But not able find the steps to follow for resoultion.
    Please help in this regard.
    Thanks,
    Jeethender

    The Fix Pack is also for Client Tools--it is a separate download.  Please see the text below for ADAPT01255422
    ADAPT01255422
    Description:
    Web Intelligence generates an incorrect MDX statement when a characteristic and a prompt are used.
    The following database error happens: "The MDX query ... failed to execute with the error
    Unknown error (WIS 10901)."
    New Behavior:
    This problem is resolved.
    This information is also available in the Fixed Issues document for any Fix Pack greater than 2.2.

Maybe you are looking for

  • Multiple copies of processor control in menu bar

    I installed the CHUD tools to use the Processor Prefs and enabled the "Show control in menu bar" option. Now I have 4 copies of the item in my menu bar. Only one of the items has an icon, the others are just little 10 pixel wide slivers, but if I cli

  • Changing useful life an asset and its impacts

    Hi Gurus, if we change the useful life of an asset, what are the steps do we follow ?  do we need to post the write up first and then change the useful life ? can you detailed the steps and impacts on this change with exapmles.. pl Venkat Rajesh Kuma

  • Education Infotype

    Just for verification...the BEGDA and ENDDA for IT 0022, Education infotype, should be the dates the employee attended high school, college, etc. Correct?

  • What is best way to clean up startup disc?  What apps work?

    What is the best way to clean up my startup disc?  Are any of the clean up apps trustworthy?

  • Add Holiday Calendar to SharePoint

    I'd like to add Holidays to our SharePoint calendar. We are using MOSS 2007 and Outlook 2003. I can't seem to figure out how to import an outlook calender with holidays to SharePoint calendars or how to impost and Excel holiday calendar to SharePoint