Statement.getUpdateCount() is not working

Hi
I'm using the Thin driver, and getUpdateCount() is never returning -1, no matter how many times I do a getMoreResults()
Thus I can't be sure if all results have been read.
HELP!!
null

I'm having the same problem with both the Thin and OCI JDBC drivers in Oracle 8i 8.1.6. Any help on this would be greatly appreciated.
I have a while loop that generically checks for update counts and result sets after calling the execute function of a Statement object. As the person stated below, getUpdateCount never returns a -1 and I get into an infinite loop. I am using the getUpdateCount, getResultSet and getMoreResults methods in conjunction with the execute method.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Marcos Scriven ([email protected]):
Hi
I'm using the Thin driver, and getUpdateCount() is never returning -1, no matter how many times I do a getMoreResults()
Thus I can't be sure if all results have been read.
HELP!!<HR></BLOCKQUOTE>
null

Similar Messages

  • Over State and actions not working with buttons in Flash cs4

    Hi - I am working on a Flash file and some of the buttons in the document are not working.When I test the movie the hand cursor appears when I hover over the buttons they don't change colour (as specified in the over state) and the actions don't work. Not sure what is going on here as I created other buttons in the same document the same way and they work fine. Thanks in advance.

    If you remove the code from the buttons do they react properly to a mouse over interaction?
    What is the code that is in place?

  • Dropdown state on buttons not working

    I created a navigation bar in Fireworks (which works when I
    preview), then import it into Dreamweaver as a .cfm file (by
    clicking on Insert in Dreamweaver, Image Objects, Fireworks html).
    This navigationbar.cfm file is called from each of my .cfm webpages
    as an include file. The problem is that the down state is not
    working when I click on the buttons. I need to add some javascript
    to the navigationbar.cfm file. Can anyone help?

    Did you set the colors properly on that menu and did you assign navigation for them?
    http://dvdstepbystep.com/buttons07.php
    http://dvdstepbystep.com/newmap.php

  • Save state in client not working under EA4?

    It seems to me that "saveStateInClient=true" is not longer working under EA4. In EA3 there was a hidden input field with the current state in the rendered output, but in EA4 there is no hidden input field at all. I know that saveStateInClient is not working properly for all situations in EA3 but why does it not work at all in EA4??
    Greetings
    Heiko.

    It seems to me that "saveStateInClient=true" is not
    longer working under EA4. In EA3 there was a hidden
    input field with the current state in the rendered
    output, but in EA4 there is no hidden input field at
    all. I know that saveStateInClient is not working
    properly for all situations in EA3 but why does it not
    work at all in EA4??
    Greetings
    Heiko.They changed the name of the parameter. It is now called
    com.sun.faces.saveStateInClient.

  • Changing State within Datagrid Not Working

    I have a datagrid with one column containing a linkbutton
    with the following code:
    <mx:DataGridColumn headerText="Text" textAlign="center"
    width="70">
    <mx:itemRenderer>
    <mx:Component>
    <mx:LinkButton label="{data.number}"
    click="currentState='differentstate'"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    The issue is when the link is clicked an error appears saying
    the state is undefined. The state is defined and works when
    referenced with a linkbutton outside the datagrid.
    Is the code to change the state different when within an
    itemrenderer?
    Thanks.

    Thanks for the suggestion babo_ya.
    I tried that - and the positive is - it no longer throws an
    error...but for some reason it still doesn't show it. In fact, I
    applied a transition to the state - one on initiation and another
    when closing - i added a button outside the datagrid to see how the
    effect would appear. When I click the linkbutton inside the
    datagrid it appears to apply only the closing transition: from
    'differentstate' to '*'. What could I be missing?
    Anyone's help would be much appreciated.
    Thanks again.

  • Statement.setFetchSize is not working properly

    I am using setFetchSize to limit the rows returned by query.
    Here is Code without using setFetchSize -
    Statement stmt = dao.createStatement();
    ResultSet rset = stmt.executeQuery("SELECT * FROM temp"); 
    while(rset.next ())
    System.out.println( rset.getString (1) ); Code using setFetchSize -
    Statement stmt = dao.createStatement();
    stmt.setFetchSize(20);
    ResultSet rset = stmt.executeQuery("SELECT * FROM temp"); 
    while(rset.next ())
    System.out.println( rset.getString (1) ); both the code returns same result. temp has has 50 records and all records are returned in both the cases.
    Edited by: seeking_solution on Jul 22, 2009 5:25 AM

    seeking_solution wrote:
    Actually we have a process in which we process records from a table and send an email for each record.
    This table can have >250,000 records. We create collection of VOs after getting record. Now having so many VOs in memory machine goes "out of Memory".
    I want to fetch some number of records at a time then process them and send emails. then fetch next some number of records and perform processing on them.
    Option 1
    Process them in the database (probably much faster anyways.). Put a entry in a task table for each one processed. Use a sequential key of some sort (date or integer.) It also has a marker indicating whether notification has occurred. Your java app retrieves rows that do not have the marker set and can limit the number, which ordering via the sequential key allows. It sends and marks each as sent. It repeats until no rows left.
    Option 2
    Same as option 1 but you process in java. You still create the task table in the database, and send email just like in option 1.
    Advantage of both of those is that you have an ongoing record of completion (row itself) and notification (which can include a timestamp.)

  • UCCX Automatic Work State configured but not working?

    HI All, I have a customer that is running UCCX 8.0.2SU3 and I have some CSQs configured with Automatic Work configured for 60 seconds.  Prior to and just after the go-live of the solution the Automatic Work state was working fine.  However; now for some reason it has just stopped working?  Has anyone seem this before in the latest versions of UCCX (8.X)?  The customer version is System version: 8.0.2.11004-12
    Any assistance appreciated.
    Many thanks.
    Steve

    Make sure the CAD is 8.0.2.400.
    The call has to be coming from the queue. Otherwise, it won't work.

  • Using SPUtility.SendEmail inside a state machine workflow not working

    I have a State Machine Workflow. I have developed in visual studio 2010 for a SharePoint 2010 site. I want to send emails to couple of people inside an activity and my code will decide the email receiver. When I assign the task from my code to some one the
    State Machine workflow is sending mail to the task assignee and assigning the task to that person. But if I want to send mail to some additional person from the workflow, it is not allowing me to send that. The code I am using for the same is, SPUtility.SendEmail(SPContext.Current.Web,
    headers, mailBody);
    Can any one please let me know, why it is not sending mail with this code, or what can be the solution for the same.
    Thanks

    Hi Monali,
    Thanks for your sharing.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • SUBMIT statement for MD03 not working (module pool)

    I am trying to use SUBMIT stament for transaction MD03.
    SUBMIT SAPMM61X USING SELECTION-SETS OF PROGRAM '200'
    WITH matnr = matnr
    WITH werks = werks
    WITH versl = versl
    WITH baner = baner
    WITH lifkz = lifkz
    WITH diser = diser
    WITH plmod = plmod
    WITH trmpl = trmpl
    WITH dispd = dispd
    WITH ANZDL = ANZDL
    EXPORTING LIST TO MEMORY
    AND RETURN.
    But getting RUNTIME error
    Error analysis                                                                               
    You attempted to start the ABAP/4 program "SAPMM61X" with SUBMIT, but the                    
        attributes specify this program as type "M" instead of "1". You can                          
        only start programs of type 1 with SUBMIT.     
    I want to run MD03 thru a wrapper program and get back the values.
    Thanks,
    AP
    Edited by: Julius Bussche on Jul 23, 2009 9:35 PM
    Subject title improved...

    Thers is correction to what I posted above
    MD03 is working fine with call trasaction as we work with one item and one layer. Only one matarial i can capture that.
    But for MD02 we have single-tem and multiple layer. After the tranaction is excute there is Button on the output screen When clicked on it, it displays list of materials (layer). I need to capture the list how do i caapture it in a internal table.

  • Domain Controller System State backup script *not working*

    Hello I am trying to get an automated backup for my domain controller to a network share using a script and windows task scheduler - our domain controller is windows server 2008r2
    this is the code for the script i have written as seen below, however when i run the scrip it does create the folder on the network share but fails to initiate the system state backup power shell returns this error when i run the script.
    any suggestions on what i can do to resolve this issue? i am also rather new to powershell so there many be a much easier way of going about it.
    many thanks
    Gordon
    wbadmin 1.0 - Backup command-line tool
    (C) Copyright 2004 Microsoft Corp.
    ERROR - One of the parameters or options specified is invalid: [quiet].
    See the syntax below.
    Syntax: WBADMIN START SYSTEMSTATEBACKUP
    -backupTarget:<VolumeName>
    [-quiet]
    Description: Creates a system state backup of the local computer and stores
    it on the location specified.
    To use this command, you must be a member of the Backup Operators group
    or Administrators group.
    Parameters:
    -backupTarget Specifies the location where you want to store the backup.
    The storage location requires a drive letter or a GUID-based
    volume of the format: \\?\Volume{GUID}.
    -quiet Runs the command with no prompts to the user.
    Example:
    WBADMIN START SYSTEMSTATEBACKUP -backupTarget:f:
    #adds windows server backup powershell snapin
    Add-Pssnapin windows.serverbackup
    #gets date
    $date = Get-Date -Format dd.MM.yyyy
    #declares backup location and adds date
    $backdir = ("\\backupserver\bpdbackups\DC\$date")
    #makes backup directory on network share
    mkdir $backdir | out-null
    #runs system statebackup
    wbadmin start systemstatebackup -backupTarget:$backdir -[quiet]
    #sends and email at the nd of the process
    $smtp = "192.168.xxx.xxx"
    $from = "Domain Controller <[email protected]>"
    $to = "Network Admin <[email protected]>"
    $body = "The backup operation has been successfully done! Date: $date"
    $subject = "Backup on $date"
    #Send an Email to User
    send-MailMessage -SmtpServer $smtp -From $from -To $to -Subject $subject -Body $body - BodyAsHtml
    write-host "Backup Successful"

    wbadmin start systemstatebackup -backupTarget:$backdir -[quiet]"[quiet]"? I guess you should remove the bracketswbadmin start systemstatebackup -backupTarget:$backdir -quiet

  • I can not get apps to load states account will not work in Finland store go to us store, I can not get apps to load states account will not work in Finland store go to us store

    How do I get it to change to us App Store

    Settings>iTunes & App Stores>Apple ID
    Tap your ID
    Tap View Apple ID
    Enter your password
    Go to Country/Region in the popup window to change the store.

  • Clearing state currentState = ''; not working

    I am developing a code where I have developed three components that is three states for me. I have a contol on my home screen (base state) which is able to take me to any of these states whenever required. My issue is once I reach to say in State A and want to go back to home page. My "HOME" button in State A is not working even after I am clearing state using currentState = '' ; Do I have to do anything extra to get it to home page from State A here? Any help would be highly appreciated!!

    Whenever I create a flex app that has several states, I've gotten into
    the habit of simply copying my base state and renaming it something
    to the effect of "start", so rather than trying to clear your state try this method. 
    Slightly superfluous and even a tad bit inane, but it works and gives you an
    extra state buffer between impromptu edits and your base state .
    So copy your base state
    and rather than:
               currentState = "";
    try      currentState = "start";
    on for size.

  • Target Display Mode not working iMac 27(2012) Bootcamp to iMac 27(2013)

    Hi All,
    I recently purchased an iMac 27" 2013 which replaced my iMac 27" 2010.
    ===============
    PREVIOUS SETUP
    ===============
    (1) iMac 27" 2012 - Running Windows 8.1
    (2) iMac 27" 2010 - Running OS X Mavericks
    (1)+(2) were connected with a Mini-Display-Port cable.
    (1) was using (2) as external display while (2) was set to Target Display Mode using CMD+F2
    ==============
    CURRENT SETUP
    ==============
    (1) iMac 27" 2013 - Running Windows 8.1
    (2) iMac 27" 2012 - Running OS X Mavericks
    (1)+(2) are connected with Thunderbolt cable.
    (1) can't use (2) as external display anymore becuase CMD+F2 has no effect anymore on (2) in this scenario.
    If (1) and (2) are both running OS X all works as expected.
    I am aware about the support hint from Apple where they state TDM is not working under Bootcamp.
    And I agree, while booted into Windows Bootcamp this machine can't serve as external display. Makes sense because TDM is baked into OS X display drivers.
    Anyone had the same experience and came to a soltuion?
    Thanks,
    Martin

    "Apple has no plans to implement a client driver for Windows since there is no Thunderbolt SW stack available for Windows like there is for Display Port."
    That is a little bit funny since Gigabyte and other big companies have said that 2014 is the year that they are going to implement Thunderbolt in many motherboards.
    "GIGABYTE 7 series motherboards are the very first to offer fully certified dual onboard Thunderbolt™ ports. Capable of connecting up to 12 devices plus 3 digital displays simultaneously with breathtaking data transfer speeds that can transfer 1TB of data in only five minutes, GIGABYTE Thunderbolt™ motherboards offer the fastest connection interface on the desktop PC."
    Have you asked Apple about that? I dont understand why Apple is crippling Thunderbolt on their devices...

  • Select in FROM clause not working

    Hello,
    I have three tables with one table containing the name of the other two tables and i want to select dynamically the two selects based on their ID that matches in the first table.
    CREATE TABLE_NAMES (ID NUMBER, TableName VARCHAR(2) )
    CREATE TRADE (activites VARCHAR(2), TRADE_ID )
    CREATE CONTRACT(activites VARCHAR(2), TRADE_ID )
    INSERT INTO TABLE_NAMES ( 101, 'TRADE' );
    INSERT INTO TABLE_NAMES ( 202, 'CONTRACT' );
    INSERT INTO TRADE ('TRADE 1' , 101 )
    INSERT INTO CONTRACT ('CONTRACT 1' , 202 )
    What I wanted to do is select the table name dynamically based up on the id in TABLE_NAMES
    and I failed when doing this
    SELECT SELECTED_TABLE.activites FROM ( SELECT TABLE_NAME FROM TABLE_NAMES WHERE ID = 101 ) SELECTED_TABLE
    OR a more generic form with JOIN statement also did not work
    SELECT SELECTED_TABLE.activities FROM TABLE_NAMES SELECTION JOIN ( SELECT TABLE_NAME FROM TABLE_NAMES) SELECTED_TABLE
    ON SELECTION.ID = SELECTED_TABLE.TRADE_ID
    Thanks in advance

    What you are trying to do will not work. To accomplish your requirement you would have to use dynamic SQL.
    However, I want to stress that this is probably not a good design decision because:
    1. Maintainability of the code may be jeopardized
    2. Dynamic SQL could be laden with SQL injection vulnerabilities
    3. Dynamic SQL generally does not perform as well as static SQL.
    HTH!

  • MOVE INNNn to I0008 not working.

    Hi All,
    We are going to an Upgrade from 4.6C to ECC 6.0.
    In one of the enhancement done we were using the statement Move innnn to i0008.
    Now this statement gives the following syntax error.
    " I0008 and INNNN are not mutually convertiable. In unicode programs, I0008 must have the same structure layout as INNNN , Independent of the length of the character ".
    I tried using move corresponding statement but thats not working. Its not giving any syntax error but the values are not getting transfered from INNNN to I0008.
    Please Suggest the solution.
    Regards,
    Vidya.

    Hi All,
    If we look at the structure of INNNN and I0008 both are different . Infacct INNNN contains the values of screen element in PA30 changes. Now we are moving the values from INNNN to I0008 .
    The INNNN have few fields of length 256 and type char, where as the infotype I0008 does not have any field of lenth 256. The MOVE statement was moving the content of this field to more that one field of infotype I0008.
    Now in ECC 6.0 its giving the error.
    Please advice.
    Regards,
    Vidya.

Maybe you are looking for