Results 1 to 2 of 2
  1. #1
    sesling is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2011
    Posts
    8

    OLE Object

    I am using MS Access 2003 to link to an 11g Oracle Database. There is an Oracle Table that has an OLE Object column field and I want to be able to get the information from that column. I can run the following SQL statement from an SQL Plus session and get the values but I want to run the same type of statement in MS Access. I have researched the web but cannot find an answer. How can I convert the statement below so it will run in MS Access?

    select id, data_id, data_type, state,
    extract(payload,'/payload/pfId/text()').getStringVal() PfId,


    extract(payload,'/payload/entityId/text()').getStringVal() Entity,
    extract(payload,'/payload/region/text()').getStringVal() Region,
    extract(payload,'/payload/recCnt/text()').getStringVal() RecCnt
    from data_track
    where existsNode(payload,'/payload/pfId') = 1

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I read that Extract is an Oracle function to get value from a date or interval value.

    Looks like to me you are importing data. Can you link to the table or otherwise connect to the Oracle database? Maybe this will help http://www.orafaq.com/node/60

    ExistsNode:
    "EXISTSNODE determines whether traversal of an XML document using a specified path results in any nodes. It takes as arguments the XMLType instance containing an XML document and a VARCHAR2 XPath string designating a path. The optional namespace_string must resolve to a VARCHAR2 value that specifies a default mapping or namespace mapping for prefixes, which Oracle Database uses when evaluating the XPath expression(s)."
    I have no idea how this would translate in Access SQL.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 09-03-2011, 07:01 PM
  2. rename ole object
    By rbg in forum Access
    Replies: 0
    Last Post: 11-29-2010, 03:13 AM
  3. Replies: 3
    Last Post: 11-02-2010, 10:14 AM
  4. Replies: 1
    Last Post: 08-05-2010, 12:11 PM
  5. Higlight an object on a map
    By avgjoe in forum Access
    Replies: 0
    Last Post: 07-21-2006, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums