ODBC Driver adds ROWID next to SELECT and disables the optimizer hint

I want to use an optimizer hint in my sql statement. For example: "select /*+ index(emp,status) +*/ status,name from emp where status=1". I have a bitmap index on status field, i want to force the select statement to use it. This one works fine from sql plus. If i execute the same statement from a VB application and run it via ODBC [Microsoft driver or oracle driver] it's sending the statement like "select rowid,/*+.....+*/ ...". I believe hint has to be next to the word SELECT, so it's not being used. I want to create an ADO connection from the vb application and create a recordset and loop through it and update some values. Any thoughts?
I tried some other options...like
select * from (select /*+ index(1,2) +*/....)
select a.* from (select /*+ index(1,2) +*/...) a
cn1.execute(sqltext) from vb..
In all these three methods it's not adding a rowid next to select.. so hint is used and able to use the index. But having issues with updating the recordset. It says "query is not from one table" and "can't be updated" errors..

The ODBC drivers are going to need to select the rowid in order to get an updatable or a scrollable recordset. Otherwise, they won't know which row in the database to update or how to fetch the previous rows without caching the entire recordset.
Can you create a view from the hinted select statement and select from that? That's likely to be the fastest solution.
Justin

Similar Messages

  • A box with"1 item" appears next to curser and disable the opening of massages.

    Afther opening the 1e massage a box appears next to curser with
    "1 item" and disable the opening of other massages, disable the
    use of Hotmail.

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    Clear the Network Cache
    * https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
    Check and tell if its working.

  • On Excel 2013 (64 bit), I can't use the Analysis ToolPack add-ins without a problem and plot the residuals.

    On Excel 2013 (64 bit), I can't use the Analysis ToolPack add-ins without a problem and plot the residuals. It went crash.

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you mind telling us the Excel version number? Like 15.0.XXXX.1000
    Would you like to collect the Event Log and App Crash dump file to do further troubleshooting?
    As far as I know, if Excel crashes when using Analysis ToolPack add-ins, it usually causes by the >>Faulting module name: mso.dll<<, Please try the following method and check if it is helpful:
    1.Copy/paste the Mso.dll from another PC.
    2.Click "Start" and "Computer."
    3.Double-click "C: Drive," "Windows" and "System32." The System32 folder opens.
    4.Drag the Mso.dll file on your desktop into the System32 folder.
    5.Click "Start," type "cmd" into the search field and press "Enter" to open the Command Prompt.
    6.Type "regsvr32 mso.dll" (without the quotation marks) into the Command Prompt and press "Enter."
    7.Close the Command Prompt and restart your computer.
    Then, if the Faulting module name is not MSO.Dll, you also can upload(Or send to us via email
    [email protected])  the Event Log/App Crash dump file. We'd like to do further troubleshooting.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac

    I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac. How do I do this? Where do I put these files on my Time Capsule? Will it affect the functioning of my Time Capsule?

    Mixing files with data is not always great idea.
    See info here.
    Q3 http://pondini.org/TM/Time_Capsule.html
    Why not just connect the PC directly to the TC by ethernet and copy the files over?
    It is hugely faster and much less mucking around.
    In windows load the airport utility for windows.. if you have not already as this will help you access the drive.
    There is more info here.
    http://support.apple.com/kb/HT1331

  • My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    You'll get better performance if you use a Firewire hard drive (especially if you buy a 7200 RPM drive). Firewire's IO speed is significantly faster than USB 2.  USB 2 has a theoretical max speed of 480 Mbps except that it has extremely high over-head.   The fastest speeds you can typically get are about 300 Mbps.   Firewire, on the other hand, has very little overhead.  The fastest speeds you can get are very nearly 800 Mbps.  You will typically be constrained by the maximum read/write speed of the drive, not the speed of the I/O on the Firewire bus.  Now if you had one of those nice shiny new Macs with the Thunderbolt I/O and a Thunderbolt drive (Light Peak) ... I think they alter space and time so that your data arrives before you know you want it. 
    Also... unless you want to buy a solid state drive (very expensive), try to keep your hard drives from becoming much more than about 60% full if you want great performance.  A nearly "full" hard drive is, on average, only about half as fast as the same hard drive when nearly empty.
    USB 2 will work perfectly fine... just not as fast.
    Also... it's much safer to move the entire Aperture library than to "relocate masters".  Your images must be managed.  You can Aperture manage them, or you can manage them.  But someone has to manage them.  If you "relocate" them so that they are no longer stored inside the Aperture library then you'll need to work out a system of how you decide to organize things and it's critically important that you don't start moving files around or deleting things without Aperture's knowledge.  If you do, you'll break the links to your masters and start having problems with missing masters.  If you have Aperture manage the library then you don't need to worry about any of that stuff.... it's safer.
    Do make backups (use the Aperture Vault or use some other backup program, but make sure you back up your work if you care about it.)  There are only two kinds of hard drives in the world:  (1) those that have failed and (2) those that are going to fail.  There are no exceptions to this rule.  Hard drives are cheap.  Backup software is built into Aperture and into your Mac.

  • How can I select and delete the fill color (white background) of a live trace (B&W) with in an actio

    How can I select and delete the fill color (white background) of a live trace (B&W) with in an action set?
    Illustrator CS4 in windows XP.

    Maybe Li[ve trace] is not t]he way[ to go
    I have some suggestion one leave it as is and use a blending mode of multiply to give it a color background like this
    leave it as is make it a grayscale tiff import int Illustrator and color it it in Illustrator like this
    Or trace over it with the brush tool aand then give it a color ground.
    Or do the original over and do a cleaner job with no tone or a minimum of tone. Then Live trace.

  • How can I select and remove the football net behind the goalkeeper with Photoshop CS5?

    Hello,
    Could you please help me with the following case. I have a photo of a football game and I would like to select and remove the football (soccer) net behind the goalkeeper. Do you know what is the procedure for selecting and removing of the net so as to "clear" the goal showing only the goalkeeper in the frame of the goal?
    Thank you in advance,
    Petar
    Product: Photoshop CS5

    Hi Petar,
    You're in luck. Photoshop CS5 was the first version to come with Content Aware Fill. You can use this to seamlessly erase objects, like your net. Try taking a look at this video, which should help you do just that:

  • Is there a way to use the time capsule as an external hard drive only and disable the wi-fi function ?

    Is there a way to use the time capsule as an external hard drive only and disable the wi-fi function ?

    Yes.
    1) Connect an Ethernet cable from one of the LAN <--> ports on your existing wireless router to the WAN "O" port on the Time Capsule
    2) Go through the standard configuration suggested by the setup "wizard"
    3) Then manually turn off the wireless function using AirPort Utility

  • How to select and store the dynamically clicked values in the checkboxes?

    Hi Gurus
    How to select and store the dynamically clicked values in the checkboxes?
    Scenario:-
    I am having a tree structure but I am not getting that user has clicked the which nodes.
    So how to do it.
    Pls.

    Hi,
    Once again, this is dependent on what your implementation expects. It would seem that your implementation is expecting all of the API to be coded in Java Card so it would make sense that you would load these packages like any other package. Loading an applet is not a special case, it just has an extra step of installing instances of it (and can actually be installed). Any other Java package just needs to be loaded. As such, just load your CAP files for each package of the API before loading any code that depends on it.
    Cheers,
    Shane

  • What I have to configure in my pc �so I can selecting and copy the ja

    Before i could copy the content of my java console with selecting it and pressing ctrl + c...but now�I can�t :(
    What I have to configure in my pc ...so I can selecting and copy the java console content in a text file?
    Thanks in advance
    Mary

    Excuse me....but i don't have success in that....
    I am using win 2000 server
    jdk 1.4.1.01
    java plug in 1.4.1.01
    I can open the java console.....
    if i select the text and press right clic ....i don't obtain any menus.....
    if i give clic in the title bar (of my java console) i obtain a menu wiht the following obtions:
    Mover
    Tama�o
    Minimizar
    Maximizar
    Cerrar Alt+F4
    And ctrol+c doesn't working.....
    Select the text and press enter...and in the text editor press control+v...and i dont obtain nothing.....:(
    Some ideas or suggestions please?.....
    Thnaks in advance....
    Mary

  • Enable and Disable the file paths

    Hai i have two file paths one logical file path and other is physical file path.
    I took two radio buttons.
    How can i enable and disable the file paths by using these radio buttons.
    When i select the 1st radio button then 1st file path is in enable and second file path in disable mode similarly for the second radio button also.
    It is very urgent .
    With Regards,
    Prasad.Tallapudi.

    i answered in your other post....here is the code again....
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: logfile type string default 'Z_DATALOAD',
    FILE(128) TYPE C DEFAULT 'nittest.txt' LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LFILE RADIOBUTTON GROUP G1 USER-COMMAND C1 DEFAULT 'X',
    P_PFILE RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    at selection-screen output.
      if p_lfile eq 'X'.
        loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '1'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '0'.
              endif.
              modify screen.
          endloop.
        endif.
        if p_pfile eq 'X'.
          loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '0'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '1'.
              endif.
              modify screen.
          endloop.
          endif.
    if the problem gets solved...please close both the posts

  • Enabling and disabling the button in the multi record block

    hi all,
    i am using
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    i have a multi record block each block contains a button(button is to approve the record in terms of changing the status)
    i have the items like date,remarks and button
    the button should be enabled if the remarks is not null otherwise it should be disabled.
    for this in pre-record trigger i have written
    if :record is null then
       set_item_property('button',enabled,property_false);
    else
          set_item_property('button',enabled,property_false);
    end if;what problem is enable and disable is impacting on all the buttons in the block. in other words if first record's remarks is null then all the records button is disabled. if first record's remarks column is not null then all the records of the button column is enabled.
    i have to make enable and disable the button for the corresponding record.that means if first record's remarks column is not null then only first records button should be enabled others should be disabled.
    Thanks..

    You need to set the No. of items displayed to 1 as Ammad had said, additionally you can set the X and Y Position (Just Y will do and having fixed X) of the button depending upon the current record.
    can u explain this part alone bit more (setting the position of x and y)You need to calculate the variable Y_POS depending upon the current position of the cursor that is the current record.
    You can find the current record Y_POS using combination of
    V_CURRENT_RECORD := :SYSTEM.CURSOR_RECORD;
    V_TOP_RECORD := GET_BLOCK_PROPERTY ('BLOCK_NAME', TOP_RECORD);
    V_ITEM_Y_POS := GET_ITEM_PROPERTY ('ITEM_NAME', Y_POS);
    -- Also needs to add the Y_POS of the relative other items in the muti-record block
    V_HEIGHT := GET_ITEM_PROPERTY ('BUTTON_NAME', HEIGHT);
    -- Note :- TOP_RECORD  Returns the record number of the topmost visible record in the given block.
    V_Y_POS := V_ITEM_Y_POS + ((V_CURRENT_RECORD - V_TOP_RECORD) * V_HEIGHT);
    -- You will need to add Distance between Items in records if anyThen you can Set the current Y_POS of the button.
    SET_ITEM_PROPERTY ('BUTTON_NAME', Y_POS, V_Y_POS);
    [/code[
    Hope this helps
    Best Regards
    Arif Khadas
    Edited by: Arif Khadas on Feb 24, 2011 4:58 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Messaging Server 3.x: Is there an option to enable and disable the ETRN function?

    Is there an option in Messaging Server to enable and disable the ETRN function?
    <P>
    Yes. You can add the option for enabling and disabling the ETRN function by
    modifying the code in the file <BR>
    <P>
    <I>server-root</I>
    bin/mail/admin/html/SMTPChannelOptions.html
    <P>
    The original code to be modified will appear as follows:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <P>
    Modify the code to look like this:<BR>
    <P>
    <!-- ELEM txt="Allow SMTP command 'EXPN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowEXPN" v="no" -->
    No
    <!-- ELEM txt="Allow SMTP command 'ETRN': " -->
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="yes" -->
    Yes
    <!-- M_RADIO n="SMTP-Accept/Config/AllowETRN" v="no" -->
    No
    <P>
    Making these changes will create an extra option to enable and disable the ETRN
    function on the SMTP Options page in the Administration Server.

    Yes, this is possible. In Cisco Webex Administration->Settings->Audio you can choose your audio (system-wide) options:
    WebEx Audio:
    Call In and Call Me service – Enables users to attend a teleconference by calling specified phone numbers or by receiving a Call Me call from the system.
    Call In – Enables users to attend a teleconference by calling specified phone numbers.
    OFF – Disables all calling features.
    Voice connection using computer
    ON
    OFF
    See also this section in the administartion guide.

  • Copy control for dates and disable the input

    Hi All,
    I have the following problem: I'm trying to copy dates in a follow-up order from the source order (which works fine by implementing the CRM_COPY_BADY method DATES) and disable the input of the copied dates in the follow-up order (which doesn't work).
    In the change-parameter CT_INPUT_FIELDS you can specify the fields which have to be copied and furthermore you can control the modifiability of the field in the follow-up order via the parameter CHANGEABLE (e.g. 'A' means field can not be changed). This technique is the same in all methods of the copy BADI.
    Unfortunately it doesn't work for the dates. As I said already, the date is copied but can be changed by the user in the follow-up order.
    Anybody an idea?
    Thanks and best regards, Lutz

    Dear John,
          Actually, I have tried with copy requirement 2.However, it works for copying a different customer with the same sales area as original. Yes, I may need to ask developer to solve my solution. But I would like to keep it to be the last choice. I tried to search "How to copy document between inter-company businees"; but the I still not get what my custome's want.  Anyways, thank you very much for sharing idea.

  • Can I enable and disable the system speaker under program control

    Can I enable and disable the system speaker under program control?
    I'm using LabVIEW 2010.
    The PC is running Windows XP Pro.
    Thank you

    A song???  I wouldn't exactly play them a "song" if you get my drift...
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Maybe you are looking for

  • Strange lines on the 24 Imac screen (white ones)

    Hello folks, once in a while in my mac I am getting these lines in different locations on the screen. Sometimes they are bigger and sometimes they are smaller. They tend to go away if I close the window etc. I have made hardware test but there was no

  • Not able to see tables while creating an EOo

    While I am trying to create and EO I am not able to see any table. I have tested my connection its working fine

  • Problème avec l'appareil photo : Pas d'image

    Bonjour J'ai un problème avec l'appareil photo/vidéo avant (côté écran tactile) de mon iPod 4. L'image ne s'affiche pas et je ne peux pas passer sur la caméra arrière. J'ai essayé de le redemarer et de le restaurer mais cela ne change rien.  Comment

  • Buying center tab page in opportunity missing

    Hi CRM Gurus, i am doing customizing for  Opportunity. Buying center tab page in Oppotunity tranasction type is missing. Have I missed any settings? pl. help urgently... Points will be definitely rewarded for help.. regards,

  • Buying an iPod from Thailand

    I'm an American currently teaching in English in Thailand. My iPod just broke & I am looking into buying an iPod Nano from the iPod Online Store in Thailand. Are there any differences in the model if I buy the iPod from Thailand? I just want to make