DELETE doesn't work

I'm writing an application that uses dBase III tables, because I have to use data stored with applications that produced this kind of files. I can use JdbcOdbcDriver and it works. I can perform the basic SQL instructions SELECT, INSERT and UPDATE. But DELETE doesn't work. When a DELETE operation is performed, the rows I tried to delete remain in the table, although the stmt.executeUpdate() method returns the actual number of rows fulfilling the WHERE condition.
I remember that in dBase III files, deleting rows is performed in two steps: first, rows are marked for deletion, and afterwards, a "pack" operation must be performed in order to remove the rows from the file. Does anybody know if this has any relation with my problem? Anybody can give me a hint?
Thanks a lot in advance.

I have not used dBase III files in a long time and have never used them with JDBC.
When you delete a row - the row is marked for deletion. An internal delete flag is set, in the record deleted. There is a command "SET DELETED ON", if it is set, as far as dBase is concerned the record is deleted even though the record still exists in the database. If the command "SET DELETED OFF" is used the deleted records can be seen and recovered at any point until a pack is done. If I remember correctly
you can test if a record has the delete flag on with the function "DELETED()", if true the record is is marked for deletion.
Normally you have "SET DELETED ON" and do everything as you would with any other database.
The pack function only needs to be run when it becomes necesary to recover the space the deleted records are taking up. This is nornally done only when the number of deleted records becomes significant. Also it can only be performed with exclusive use of the file. Normally the pack is done on weekends or in the middle of the night.
If all else is working in your application, suspect the records are being marked as deleted but you have not SET DELETED ON and you are still seeing the records. Note it is possible to see the flag at the start of the record.
rykk

Similar Messages

  • ITunes 10.4.1.10 how to stop downloads of free news pods?  (right click delete doesn't work) also can't scroll down list of downloads!

    (ITunes 10.4.1.10) How to stop downloads of free news pods?  (right click delete doesn't work)
    Also can't scroll down list of downloads so as to pause them.  Would like to delete them as ISP has download limit.
    Thanks in advance!  (this seems to be a dumb problem of the software having a life of its own!)

    I have been talking to Apple support about this very problem. So far they have asked me to disable both Firewall and Anti Virus software (Windows Firewall and ESAT NOD32 anti virus) - this didn't work. Rebuild my library - this didn't work. Un-install all Apple applications and re-install - this didn't work. I have created a second user account on my PC and from that account (both accounts set as Administrator) I can activate Genius. This suggests to me that the problem is possibly linked to my original User Account, which is the one I always use. I am waiting for the next update from Apple and will post an update if/when the problem is resolved.
    What I also notice is about 2 seconds in to Step 2 of the Genius activation, the progress diagonal lines bar stops, and then starts again. As soon as I see this short freeze I know that the activation will fail.

  • Rest service DELETE doesn't work with OSB

    Hi,
    I am using OSB 11g, I am using OSB proxy to monitor external rest services call. I've created a business service that point to the external rest service and I created a proxy that is routed to my business service. I modified the flow by adding a piplinepairNode -->requestPipline-->stage -->created two assign and created two variable one for the id and another one for the productID. Then I modified the business service flow as follow:
    created two insert, one to define the method, which is DELETE and another one to set the relative-URI to the productID variable and I set the response to replace the . in the body with $body, following this post: http://blogs.oracle.com/jeffdavies/entry/restful_services_with_oracle_s_1
    When I test it using osb console Execute, I can see my productID variable is set to $inbound and it is passed all the way to the business service, where it should call the external rest service with the relative-URI, which is set to my productID. it doesn't work, I get 404 error, which is undefined, I believe the reason is because business service is trying to call the external rest service with
    http://localhost:{port}/deleteProduct and the rest service expect this URL
    http://localhost:{port}/deleteProduct/2 or {productID}
    can you please help and tell me what I'm doing wrong?
    appreciate any kind of help
    Thanks
    M.

    Please refer -
    http://blogs.oracle.com/jeffdavies/entry/enhanced_rest_support_in_oracl
    Regards,
    Anuj

  • Alt + Delete doesn't work in playlists?

    With the 10.1.1 update, alt + delete doesn't seem to work in playlists anymore. How do I delete songs completely from my computer from within a playlist?

    finx518 wrote:
    Another quick question, how do I go about moving the music over from C drive to my music drive if they're already in my itunes library?
    finx518, The way to do that is the Consolidate command. Look in the Help for more detail, but basically it goes through your library, and for any file that is not already in your designated iTunes Media folder, it puts a copy into that folder.
    As a result, iTunes ends up with all the files in one place. When Consolidate is done, and you have verified that everything is OK, you can delete the song files that are outside that folder.

  • Entity beans - cascade delete doesn't work

    Hi,
    Could anyone show me a working example where cascade delete implemented with EJB3 entity beans?
    If the database not created with cascade delete I can't do it..
    I use JDeveloper 10.1.3.0 and it's embedded OC4J and Oracle 8i database.
    My session bean doesn't catch any exception during remove an entity that has child entity. The exception will be thrown only at the end of the transaction, when the container calls the concrete SQL. And my client receives SQL exception: child record found.
    Why can I define: cascade={CascadeType.REMOVE} if the container doesn't check it and doesn't throw exception when I want to delete an entity that has childs?
    Thanks
    Kati

    Kati,
    The EJB3 support in 10.13.0 JDeveloper is a preview implementation released prior to the completion of the EJB3 specification. I do not believe the cascade functionality was complete for that preview. I would recommend either switching to the 10.1.3.1 preview or downloading and using TopLink Essentials, which is the compliant implementation of EJB3 Java Persistence API (JPA).
    http://otn.oracle.com/jpa
    Doug

  • Rt click, Delete doesn't work for Bookmarks. v-4.0.1

    If I choose Bookmarks from the top menu, then rt click on a Bookmark and choose Delete, nothing happens.
    v-4.0.1

    Hello guys,
    thanks for your replies.
    Using the full URL doesn't help.
    The Firefox's error console shows only one message: 'ReferenceError: test is not defined'.
    Replacing the whole node has the same effect as changing the src property. In both cases the script object is shown with the new src value by the DOM Inspector. It seems like the src value is changed but the new file (fcts2.js) is not imported.
    Furthermore I have found that the function test() is executed if I add a call of the alert function directly after changing the src value:
    '''fcts.js'''
    function change_src(){
    document.getElementById("myscriptObject").src = "fcts2.js";
    alert("OK");
    Doing so, I get two dialogs - the first one is showing 'OK' and the second one is showing 'Hello'.
    Any ideas?

  • Swipe to delete doesn't work in the music app on my iPhone

    I Am trying to delete songs from my iPhone. When I swipe to delete, a few songs comply with the action, but most (and all of the songs I want to delete) will not allow me to delete them. How can I delete these songs?

    I agree with you G-Daddy. I just bought Alpocolypse and it has several music videos at the end. On my iPhone it will play all of the songs and then play the music videos. Not so on the iPad.
    Someone will probably make an App for that, if Apple lets it through.

  • When using irssi in Terminal, backspace doesn't work, forward delete does

    When using irssi (the command line IRC client) in 'screen' over SSH on Terminal.app, backspace (delete) doesn't work. I have to use forward delete (in my case, fn+delete). Is there any way to enable backspace delete?

    I should also add that I saw instructions on how to fix this for OS X Tiger, but Terminal.app in Leopard seems to have changed.
    http://jeremy.zawodny.com/blog/archives/000299.html
    {quote}
    "If you're on a Macbook Pro laptop, and using irssi with screen on a remote machine via ssh...
    If your backspace key is acting as a 'delete'-key in irssi in screen, Hit command+I, in terminal to bring up your window preferences, under the Keyboard settings, tick 'Delete key sends backspace' - that should fix that."
    {quote}
    The problem is that Leopard's Terminal doesn't have a "Delete key sends backspace" option to toggle. Does anyone know where I can find this?

  • HI, I just got a Macbook Pro.  It's great but my mail doesn't work at all.  It will come up correctly, but take forever to download messages,  then won't delete them,  then won't save them to folders.  Then when I go to quit mail it's like it gets stuck.

    HI, I just got a Macbook Pro.  It's great but my mail doesn't work at all.  It will come up correctly, but take forever to download messages,  then won't delete them,  then won't save them to folders.  Then when I go to quit mail it's like it gets stuck between quitting and not.  I have to force quit, then restart my computer if I want to pull up my mail again.  How can I fix this?

    If you just got your new MBP you have phone support from Apple (which is quite good) call them.  800-692-7753 tell the automated answerer "mail technical support" you'll have human quite quickly.  Hope this helps.

  • Delete messages from server when deleted from iTouch doesn't work

    Hi everybody,
    Two questions really...
    One is that with my 2nd gen iTouch I was able to set IMAP settings and it would show all of the folders (other than Inbox) that I have created on my mail account. The 4th gen iTouch doesn't seem to let me see the sub-folders.
    The second is that I have my account set to delete messages from the server when they are deleted from my Inbox, but that simply doesn't work.
    This is withe the iTouch 4 and OS 4.1 (8B117)
    Any suggestions?
    Thanks

    Is it possible that I have the wrong Server Port entered? I didn't fill in that field at all. I think it was filled in automatically. I guess I would have to contact my hosting company's support team to know what the server port is.

  • File.delete() and File.deleteOnExit() doesn't work consistently..

    I am seeing some odd behavior with trying to delete files that were opened. Usually just doing new File("file.txt").delete() would work. However, in this case, I have created an input stream to the file, read it in, saved it to another location (copied it), and now I am trying to delete it.
    The odd thing is, in my simple application, the user can work with one file at a time, but I move "processed" files to a lower pane in a swing app. When they exit it, it then archives all the files in that lower pane. Usually every file but the last one opened deletes. However, I have seen odd behavior where by some files don't delete, sometimes all of them wont delete. I tried the deleteOnExit() call which to me should be done by the JVM after it has released all objects such that they don't matter and the JVM ignores any object refs and directly makes a call (through JNI perhaps) to the underlying OS to delete the file. This doesn't work either.
    I am at a loss as to why sometimes some files delete, and other times they don't. In my processing code, I always close the input stream and set its variable to null. So I am not sure how it is possible a reference could still be held to the object representing the file on disk.

    and then, in the other class
      public int cdplayerINIToMMCD(File aDatabase, String thePassword) throws IllegalArgumentException {
         /*---------DATA---------*/
         String dbLogin, dbPassword;
         JFileChooser fc;
         INIFileFilter ff;
         int dialogReturnVal;
         String nameChosen;
         File INIFile;
         ProgressMonitor progressMonitor;
         BufferedReader inFileStream;
         String oneLine;
         int totalLines = 0;
         int linesParsed = 0;
         boolean openDBResult;
         int hasPassword;
         if ((aDatabase == null) || (!aDatabase.exists()) ||
            (FileManagement.verifyMMCD(aDatabase) == FileManagement.VERIFY_FAILED)) {
            throw new IllegalArgumentException();       
         else { 
            currentDB = aDatabase;
            if(thePassword == null) {
              dbPassword = "";
            else { dbPassword = thePassword; }
            dbLogin = dbPassword; //For MSAccess dbLogin == dbPassword
         //Ask the user for the cdplayer.ini file.
         //Create a file chooser
         if (System.getProperty("os.name").indexOf("Windows") > -1) {
            fc = new JFileChooser("C:\\Windows");
         else {
            fc = new JFileChooser();     
         fc.setMultiSelectionEnabled(false);
         fc.setDragEnabled(false);
         //Create a new FileFilter
         ff = new INIFileFilter();
         //Add this filter to our File chooser.
         fc.addChoosableFileFilter(ff);
         fc.setFileFilter(ff);
         //Ask the user to locate it.
         do {
            dialogReturnVal = fc.showOpenDialog(mainFrame);
            if (dialogReturnVal == JFileChooser.APPROVE_OPTION) {
               nameChosen = fc.getSelectedFile().getAbsolutePath();
               if(nameChosen.toLowerCase().endsWith(INIFileFilter.FILE_TYPE)) { INIFile=new File(nameChosen); }
               else { INIFile = new File(nameChosen+INIFileFilter.FILE_TYPE); }
               if (!INIFile.exists()) {
                  continue; //If the name specified does not exist, ask again.
               else { break; }
            else { //User clicked cancel in the open dialog.
               //Ignore what we've done so far.
               return(IMPORT_ABORTED);
         } while(true); //Keep asking until cancelled or a valid file is specified.
         //Determine how many lines will be parsed.
         try {
           //Open the INI for counting
           inFileStream = new BufferedReader(new InputStreamReader(new FileInputStream(INIFile)));
           while ((inFileStream.readLine()) != null) {
               totalLines++;
           //Close the INI file.
           inFileStream.close();
         } catch (IOException ex) { return(IMPORT_FAILED); }
         //Make a progress monitor that will show progress while importing.
         progressMonitor = new ProgressMonitor(mainFrame, "Importing file","", 0, totalLines);
         progressMonitor.setProgress(0);
         progressMonitor.setMillisToPopup(100);
         progressMonitor.setMillisToDecideToPopup(1);
         //Make our DatabaseHandler to insert results to the database.
         dbh = new DatabaseHandler();
         //Open the database connection.
         do {
           try {
              openDBResult = dbh.openDBConnection(currentDB, dbLogin, dbPassword);
           } catch(JDBCException ex) { return(IMPORT_JDBC_ERROR); } //OUCH! can't write anything.
             catch(SQLException ex) {
                 openDBResult = DatabaseHandler.OPNCN_FAILED;
                 //Can not open the database. Is it password protected?
                 hasPassword = JOptionPane.showConfirmDialog(mainFrame, "Could not open the database. "+
                                                "The password is wrong or you have not specified it.\n"+
                           "Do you want to enter one now?", "New password?", JOptionPane.YES_NO_OPTION);
                if (hasPassword == MMCDCatalog.DLG_OPTN_YES) {
                   dbPassword = JOptionPane.showInputDialog(mainFrame, "Please enter your "+
                                                              "password for the DataBase:");
                    dbLogin = dbPassword; //For MSAccess, login == password                                                    
                //If the password wasn't the problem, then we can't help it.
                else { return(IMPORT_FAILED); }
         } while(openDBResult != DatabaseHandler.OPNCN_OK); //If it is OK, no exception thrown.
         //Import the ini file
         try {
            //Open the INI file for parsing.
            inFileStream = new BufferedReader(new InputStreamReader(new FileInputStream(INIFile)));
            //Read and parse the INI file. Save entries once parsed.
            while ((oneLine = inFileStream.readLine()) != null) {
               parseLine(oneLine);
               linesParsed++;
               progressMonitor.setNote("Entries imported so far: "+entriesImported);
               progressMonitor.setProgress(linesParsed);
               if ((progressMonitor.isCanceled()) || (linesParsed == progressMonitor.getMaximum())) {
                  progressMonitor.close();
                  break;
            //Close the INI file.
            inFileStream.close();
         } catch (IOException ex) {
              //Make absolutely sure the progressMonitor has disappeared
                progressMonitor.close();
                if (dbh.closeDBConnection() != DatabaseHandler.CLSCN_OK) {
                 JOptionPane.showMessageDialog(mainFrame, "Error while reading the INI file.\n"+
                    "Error while attempting to close the database", "Error", JOptionPane.INFORMATION_MESSAGE);
              else {
                 JOptionPane.showMessageDialog(mainFrame, "Error while reading the INI file.",
                                                    "Error", JOptionPane.INFORMATION_MESSAGE);     
                return(IMPORT_FAILED);
         //Make absolutely sure the progressMonitor has disappeared
         progressMonitor.close();
         //Close the database connection
         if (dbh.closeDBConnection() != DatabaseHandler.CLSCN_OK) {
            JOptionPane.showMessageDialog(mainFrame, "Error while closing the database after import.",
                                          "Error", JOptionPane.INFORMATION_MESSAGE);
         //Did the user cancel?
         if (totalLines != linesParsed) {
            return(IMPORT_ABORTED);     
         //Success!
         //Everything ok. Return the number of entries imported.
         return(entriesImported);
      }

  • I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. What do I do?

    I cannot access my old email address anymore, however I have used it for my apple ID and now I want to delete it because the account has never been verified in the first place so my password for it doesn't work. So when I want to download apps I have to sign in with apple id but I can't so I made a new one, However I can't seem to be able to delete the old one. What do I do?

    You can't merge Apple IDs.  You also can't cancel (delete) and existing ID, you can only choose to stop using it.
    If your old ID was compromised and you can no longer access it, you'll have to contact Apple for assistance.  Go to https://expresslane.apple.com ; click 'See all products and services' at the bottom of the page. In the next page click 'More Products and Services, then 'Apple ID'. In the next page select 'Other Apple ID Topics' then then 'Apple ID account Security’.

  • In my iTunes on the iPad I've got 95 items that are stuck and I tried swiping them to delete them but it doesn't work dose any one know how to empty the download tab

    In my iTunes on the iPad I've got 95 things that are stuck and I tried swiping them to delete them but it doesn't work dose any one know how to empty the download tab

    Thanks, but, using the "free" version of Reader, there is no opportunity to open nor import the xml data - the menu options do not exist - there is no import listed.
    If we try to open the xml file directly, then we get an error - something to the effect of "unsupported file type, or the file is corrupted".
    I just noticed in my Pro version that there is the command File ->Form Data ->Import Data to Form... command. Is this what you are referring to?
    What do you recommend? Perhaps the easiest thing to do would be to purchase a few copies of Acrobat Pro for the reservations people to use? I was hoping that the free version of reader would do it, but perhaps not?
    Thanks again,
    Rob

  • HT1923 The sync function on my iPod Touch 3rd generation doesn't work properly.  My OS is up to date, but some of my podcasts won't transfer onto the iPod, and it won't delete ones I've already listened to.

    The sync function on my 3rd gen iPod Touch doesn't work properly.  It won't sync all the podcasts I've downloaded, and it won't delete ones I've listened to and deleted on iTunes.

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • I have a mac 10.6 system when using firefox, I can no longer open attachments or downloads. I deleted firefox and reinstalled and it still doesn't work.

    When using firefox, I can no longer open attachments, pdf or downloads. A new window will open and it is blank. The only way to open an attachment or pdf is to shut down firefox and use safari. Everything works with safari so I can't understand what went wrong with firefox. I even download adobe reader thinking that would help. I then deleted my original firefox and re downloaded firefox again. It still doesn't work.
    I am using a 10.6 operating system on my Mac.

    Try to disable the Adobe Reader plugin in Firefox (Tools > Add-ons > Plugins) and use the external Adobe Reader application or Preview application instead.
    *Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader
    PDF files may also be found under another entry like Portable document.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file

Maybe you are looking for

  • Use of Externalizable Interface

    Hi All, can any of you please tell me that what is the exact use of Externalizable Interface and when do we need to use Externalizable instaed of Serializable. Thanks in advance.

  • I received an update yesterday from Itunes. It downloaded. Now I get "The program can't start because MSVCR80.dll is missing from your computer.

    Then I got this message "Itunes not installed correctly please reinstall Itunes, Error 7 (Windows Error 126). I have tried re-downloading Itunes but I keep getting the same message. I don't know what else to try? I've ran Microsoft security Essential

  • Import taking too much time

    Hi all I'm quite new to database administration.my problem is that i'm trying to import dump file but one of the table taking too much time to import . Description:: 1 Export taken from source database which is in oracle 8i character set is WE8ISO885

  • Invisible Lines showing on Export

    Hello, I have done quite a bit of research before posting this however if I missed an article about it feel free to link me. I have designed artwork that uses lots of colors and lines. Everything was pretty much designed with lines and shapes and the

  • Keyboard, power, and character palette issues

    I have a brand new macbook (about 3 weeks old) that came with leopard pre-installed. I am continually having problems with the laptop not recovering from sleep mode and the keyboard will spontaneously stop working periodically. As well, the special c