Problems updating database

Hello everyone,
maybe someone has a good example on how to update *.mdb database through JTextFields multiple times, i have tried lots of things, but always there shows up java.lang errors and so on! :((( Maybe problem is in that when im selecting from database i cast .toString() to see the numerical values and so on, and if i want to return it still runs them as a string not numerical! :(
And other thing- how correctly update object through tablemodels setValueAt where i call rs.updateObject, maybe this could be the salvation of my problems, when i just give values from my JTextFields to JTable interface, and from JTable directly to TableModel???
I have been looking for good example for tableModel extending deaultTableModel an its methods, and have found none, i was searching somewhere for 4 days and got sicko of this all, really theres no chance to find something like that? Problem sits in that i dont know how correctly populate JTable with data if Im extending DefaultTableModel, couse all the time problems are with return allrows.size()
Tnx!!1

now i write something of int type in this jTextField and wish to make an update onceSo create a GUI with a text field and a button. When you click the button you get the value from the text field and invoke SQL that updates the database.
You can find [url  http://java.sun.com/docs/books/tutorial/]tutorials here on building a GUI and on using JDBC. So read the tutorials and give it a go. I'll give you a hint. For the database update I would use a PreparedStatement:
String sql = "INSERT INTO Page (Name, Title) VALUES (?, ?)";
PreparedStatement stmt = connection.prepareStatement(sql);
stmt.setString( 1, "Name1" );
stmt.setString( 2, "Title1" );
stmt.executeUpdate();If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

Similar Messages

  • Problem update Database

    I'm writing a simple add/update method. When adding a new key/value everything works just fine. However, if the key already exist it does not overwrite the data, I just get a lock error.
    I ran several tests and I'm pretty certain it is just an issue with existing keys. I tried using both TransactionRunner and regular transaction. Both time adding key/data works only when there is no identical key in the DB.
    I assume there should be some flag to enable overwriting
    Thanks
    -Yaie
    Here is how I set up my environment
    EnvironmentConfig envConfig = new EnvironmentConfig();
    envConfig.setTransactional(true);
    envConfig.setAllowCreate(true);
    env = new Environment(envHome, envConfig);
    DatabaseConfig dbConfig = new DatabaseConfig();
    dbConfig.setTransactional(true);
    dbConfig.setAllowCreate(true);
    solrDb = env.openDatabase(null, SOLR_DB, dbConfig);

    Yaie,
    However, if the key already exist it does not overwrite the data, I just get a lock error.A lock error (please always send the stack trace whenever you report an error!) doesn't mean that the record already exists or that you're using the wrong method, it means that another thread or transaction holds a lock on that record. Be sure to read:
    http://docs.oracle.com/cd/E17277_02/html/TransactionGettingStarted/index.html
    And be sure to close your transactions and cursors, or they will hold locks forever.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem install EHP2 NW (DB2) "update database registry"

    Hi, I have problem install EHP2 NW Solaris and db2. in the phase "update database registry".
    the log is:
    Unable to access application /db2/db2epd/sqllib/adm/db2set. No such file or directory
    Failed action:  with parameters
    Error number 0 error type SPECIFIC_CODE
    S.O:
    In the directory /db2/db2epd
    server: ls
    db2_software
    only found this file. not such file sqllib.
    what happend??
    help please.

    Hi,
    What is your Operating system ?
    Please make sure that file system should not be created with cio option but with rw option.
    Thanks
    Sunny

  • Problems updating the BAM database

    Hi Guys,
    I have an activity that runs for a long time and after executing for about 15-16 mins it causes the following exception.
    Did somebody else also faced this problem ever? I have tried configuring all possible timeout parameters but all in vain.
    Any help would be highly appreciated.
    Thanks,
    MK
    EXCEPTION DETAILS
    Problems updating the BAM database. Reason:Unable to connect to the database.
    Caused by: A lock could not be obtained within the time requested
    fuego.analyzer.UpdaterRuntimeException: Unable to connect to the database.
         at fuego.analyzer.UpdaterRuntimeException.cannotConnecToDatabase(UpdaterRuntimeException.java:80)
         at fuego.analyzer.UpdaterRunner.synchronizeMetadata(UpdaterRunner.java:494)
         at fuego.analyzer.UpdaterRunner.run(UpdaterRunner.java:273)
         at fuego.analyzer.UpdaterRunner.runUpdater(UpdaterRunner.java:176)
         at fuego.server.service.BAMRunnerService.runUpdater(BAMRunnerService.java:62)
         at fuego.server.execution.BAMUpdater.execute(BAMUpdater.java:33)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:465)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:543)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:216)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:116)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:56)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:265)
         at fuego.server.execution.ToDoItem.run(ToDoItem.java:536)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:752)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:732)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:138)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:130)
         at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:429)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:816)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:395)
    Caused by: SQL Exception: A lock could not be obtained within the time requested
         at com.ibm.db2cs.m.j.generateCsSQLException(Unknown Source)
         at com.ibm.db2cs.m.b.wrapInSQLException(Unknown Source)
         at com.ibm.db2cs.m.b.handleException(Unknown Source)
         at com.ibm.db2cs.m.d.handleException(Unknown Source)
         at com.ibm.db2cs.m.t.handleException(Unknown Source)
         at com.ibm.db2cs.m.s.closeOnTransactionError(Unknown Source)
         at com.ibm.db2cs.m.s.movePosition(Unknown Source)
         at com.ibm.db2cs.m.s.next(Unknown Source)
         at fuego.jdbc.FaultTolerantResultSet.next(FaultTolerantResultSet.java:553)
         at fuego.analyzer.Updater.loadInstanceInfoValues(Updater.java:1039)
         at fuego.analyzer.Updater.loadInstanceInfoValues(Updater.java:988)
         at fuego.analyzer.Updater.loadInstanceInfo(Updater.java:982)
         at fuego.analyzer.Updater.synchronize(Updater.java:252)
         at fuego.analyzer.UpdaterRunner.synchronizeMetadata(UpdaterRunner.java:480)
         ... 20 more

    Good morning justinmm357,
    I would be more than happy to help delink the secondary email address from your My Best Buy™ account.  Please send me a private message with the information below, by clicking on the blue button in my signature, and I will make sure that everything is up-to-date.
    Name
    Phone #
    Mailing address
    Email address (primary and secondary)
    Thank you for reaching out to us on the forum and for being a My Best Buy™ member!
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Problem in update database statistics

    when i run
    update database statistics
    when it completed it becomes red
    then i check it out
    log file  there i found error
    BR0301E SQL error -904 at location stats_ind_collect-3, SQL statement:                                                                       
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPECC"', INDNAME => '"SNAP~0"', ESTIMATE_PERCENT => NULL, DEGREE => NULL, NO_INVALIDATE => FALSE); END;                                                                      
    ORA-00904: : invalid identifier                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10621                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10645                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for index SAPECC.SNAP~0                                                                        
    BR0280I BRCONNECT time stamp: 2009-11-03 10.56.12                                                                               
    BR0301E SQL error -904 at location stats_ind_collect-3, SQL statement:                                                                       
    'BEGIN DBMS_STATS.GATHER_INDEX_STATS (OWNNAME => '"SAPECC"', INDNAME => '"SNAP~DSX"', ESTIMATE_PERCENT => NULL, DEGREE => NULL, NO_INVALIDATE
    ORA-00904: : invalid identifier                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10621                                                                               
    ORA-06512: at "SYS.DBMS_STATS", line 10645                                                                               
    ORA-06512: at line 1                                                                               
    BR0886E Checking/collecting statistics failed for index SAPECC.SNAP~DSX                                                                      
    what will i do
    please suggest something

    Hi Anant ,
    I think you need to update your brtool patch as described in [Note 874911 - Workaround for ORA-31603 (BR0996E) during reorganization|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=874911].
    Hope it will solve your problem as it is due to bug in oracle.
    Regards,
    Gagan Deep Kaushal

  • ERP EHP4 Installation Problem in Update Database registry Phase.

    Hi,
    We are installing ERP 6.0 EHP4 Ready SR1 on AIX6.1 (6100-03-01-0921)  and DB2 v9.1.0.7.
    During installation in phase Update Database Registry, we are getting below error:
    SQL1042C  An unexpected system error occurred
    If any body has faced this error earlier, then please suggest.
    Thanks
    Sunny

    Hi,
    Please find below the latest entries in db2diag.log:
    2009-12-14-20.15.17.555605-330 I25354A304         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:260
    DATA #1 : String, 43 bytes
    System controller termination is completed.
    2009-12-14-20.15.17.555785-330 I25659A383         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:270
    DATA #1 : String, 26 bytes
    Active EDUs to be waited :
    DATA #2 : Hexdump, 4 bytes
    0x0FFFFFFFFFFFCF70 : 0000 0001                                  ....
    2009-12-14-20.15.17.565945-330 I26043A381         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:280
    DATA #1 : String, 24 bytes
    There is no active EDUs.
    DATA #2 : Hexdump, 4 bytes
    0x0FFFFFFFFFFFCF70 : 0000 0000                                  ....
    2009-12-14-20.15.17.830570-330 E26425A301         LEVEL: Event
    PID     : 630830               TID  : 1           PROC : db2stop2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StopMain, probe:911
    MESSAGE : ADM7514W  Database manager has stopped.
    STOP    : DB2 DBM
    2009-12-14-20.15.24.936396-330 I26727A1630        LEVEL: Event
    PID     : 545014               TID  : 1           PROC : db2start
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, sqleStartStopSingleNode, probe:1130
    DATA #1 : String, 31 bytes
    /db2/db2ged/sqllib/adm/db2star2
    DATA #2 : Hexdump, 256 bytes
    0x0FFFFFFFFFFF9C20 : 2F64 6232 2F64 6232 6765 642F 7371 6C6C    /db2/db2ged/sqll
    0x0FFFFFFFFFFF9C30 : 6962 2F61 646D 2F64 6232 7374 6172 3200    ib/adm/db2star2.
    0x0FFFFFFFFFFF9C40 : 4E4F 4D53 4700 0000 0000 0000 0000 0000    NOMSG...........
    0x0FFFFFFFFFFF9C50 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C60 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C70 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C80 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9C90 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CA0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CB0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CC0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CD0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CE0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9CF0 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9D00 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    0x0FFFFFFFFFFF9D10 : 0000 0000 0000 0000 0000 0000 0000 0000    ................
    2009-12-14-20.15.25.077684-330 E28358A856         LEVEL: Warning
    PID     : 602312               TID  : 1           PROC : db2star2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, license manager, sqllcRequestAccess, probe:1
    MESSAGE : ADM12007E  There are "89" day(s) left in the evaluation period for
              the product "DB2 Enterprise Server Edition". For evaluation license
              terms and conditions, refer to the IBM License Acceptance and License
              Information document located in the license directory in the
              installation path of this product. If you have licensed this product,
              ensure the license key is properly registered. You can register the
              license via the License Center or db2licm command line utility. The
              license file can be obtained from your licensed product CD.
    2009-12-14-20.15.25.174108-330 E29215A384         LEVEL: Warning
    PID     : 667782               TID  : 1           PROC : db2wdog 0
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, routine_infrastructure, sqlerInitFmpTable, probe:30
    DATA #1 : String, 16 bytes
    agentCachingFmp:
    DATA #2 : String, 3 bytes
    OFF
    DATA #3 : String, 5 bytes
    Flag:
    DATA #4 : Boolean, 1 bytes
    false
    2009-12-14-20.15.26.288917-330 E29600A1208        LEVEL: Event
    PID     : 602312               TID  : 1           PROC : db2star2
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, base sys utilities, DB2StartMain, probe:911
    MESSAGE : ADM7513W  Database manager has started.
    START   : DB2 DBM
    DATA #1 : Build Level, 152 bytes
    Instance "db2ged" uses "64" bits and DB2 code release "SQL09017"
    with level identifier "02080107".
    Informational tokens are "DB2 v9.1.0.7", "s090308", "U823509", Fix Pack "7".
    DATA #2 : System Info, 224 bytes
    System: AIX gpldeve1 1 6 00C1EF854C00
    CPU: total:8 online:4 Threading degree per core:2
    Physical Memory(MB): total:14336 free:10662
    Virtual  Memory(MB): total:35328 free:31640
    Swap     Memory(MB): total:20992 free:20978
    Kernel   Params: msgMaxMessageSize:4194304 msgMaxQueueSize:4194304
                     shmMax:68719476736 shmMin:1 shmIDs:131072
                     shmSegments:68719476736 semIDs:131072 semNumPerID:65535
                     semOps:1024 semMaxVal:32767 semAdjustOnExit:16384
    Cur data size (bytes)  = 0x7FFFFFFFFFFFFFFF
    Cur stack size (bytes)  = 0x7FFFFFFFFFFFFFFF
    Cur core size (bytes)  = 0x0000000077359400
    nofiles (descriptors)  = 0x7FFFFFFFFFFFFFFF
    2009-12-14-20.18.03.426764-330 E30809A597         LEVEL: Warning (OS)
    PID     : 544840               TID  : 1           PROC : db2set
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, oper system services, sqloqcurdir, probe:100
    MESSAGE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
              DIA8701C Access denied for resource "", operating system return code
              was "".
    CALLED  : OS, -, unspecified_system_function
    OSERR   : EACCES (13) "Permission denied"
    DATA #1 : File name, 0 bytes
    Object not dumped: Address: 0x0FFFFFFFFFFFE688 Size: 0 Reason: Zero-length data
    2009-12-14-20.18.03.429260-330 I31407A290         LEVEL: Event
    PID     : 544840               TID  : 1           PROC : db2set
    INSTANCE: db2ged               NODE : 000
    FUNCTION: DB2 UDB, oper system services, db2set_main, probe:40
    CHANGE  : CFG DB2SET: DB2_WORKLOAD: From: "SAP" To: "SAP"
    Thanks
    Sunny

  • Error: 1013231 Unable to update database while in readonly mode for backup

    Hi all,
    Wen im deleting the members for dimendsion , its giving error (hyperion 11.1 aso)
    Error: 1013231 Unable to update database while in readonly mode for backup , how can i solve this problem ,plz can any one help on this
    Thanks

    Has somebody set the database ready for archiving, maybe some maxl has been run and the db has not been returned from read only mode.
    Try running the following Maxl (change app.db to match your app/db)
    alter database app.db end archive;
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Resolution to error - Unable to update Database Statistics

    OK, If there's one thing i hate most about SAP, its the dreaded installation, I am always so paranoid, as to something will definitely go wrong,
    Lately i realized that it aint my mind , but the damn installation itself is pretty damn stupid. Why cant SAP leave the installation packaging to professionals like installshield...
    Unfortunately SAP doesnt think of it as a better idea, so until then lets try to resolve as many errors as possible thru these forums..
    Here's one error resolution ,i am pretty sure, many are checking for..
    Use the following procedure to resolve error
    <b>Warning - "loading of sql client library oci.dll failed"
    Error - Unable to update Database Statistics, Check BRCONNECT.log</b>
    The problem seems to be with the SAP Patch Collection InstallMaster disc Material No.(<b>51032143_13</b>).
    To resolve the problem, here's what needs to be done,
    1)Install DB Instance as usual.Then after the installation errors out due to loading of sql
    client library oci.dll ..
    2)I unsar the downloaded DBATOOLS.sar (Thanks for the Link Andreaz!!!)
    log into sapnet (eg. service.sap.com) with your user-id/pwd:
    -> downloads -> support packages and patches -> entry by application group -> additional
    components -> sap kernel -> now chose either 32 or 64 bit; either unicode or non-unicode ->
    sap kernel 6.40 -> windows server -> oracle -> download the package DBATOOLS Package for
    Oracle 9.2.x ... brconnect is part of that package...
    3)Copy the files in the Unsar'd package, as follows
         overwrite br*.exe to S:\usr\sap\R31\SYS\exe\run
         overwrite initSID.sap to S:\usr\sap\R31\SYS\exe\run & 
    S:\usr\sap\R31\SYS\exe\nuc\NTI386
         overwrite libsbt.dll to S:\usr\sap\R31\SYS\exe\run &
    S:\usr\sap\R31\SYS\exe\nuc\NTI386
         overwrite sapdba_role.sql to S:\usr\sap\R31\SYS\exe\run &
    S:\usr\sap\R31\SYS\exe\nuc\NTI386
    4) Retry the installation again & Guess what!! it works....
    Warning-: I initially tried a shortcut by replacing DBATOOLS.sar on the installmaster disc, rather than following above steps, but that doesnt seem to work, the installation fails as as soon as Tablespace creation starts. So the shortcut aint a good one..

    Well, it looks like you resolved your problem yourself.
    you can send feedback to SAP directly instead of posting this here in a forum.

  • Problem in database fields creation using default class of B1DE Wizard

    Hi Experts
    In an AddOn I am creating database fields in default class "Project_DB'. It does not give any message weather it creates fields or not. My code for database creation is given below
    Namespace FormARE
        Public Class FormARE_Db
            Inherits B1Db
            Public Sub New()
                MyBase.New
                B1Connections.theAppl.StatusBar.SetText("Please wait. AddOn is updating database", BoMessageTime.bmt_Long, BoStatusBarMessageType.smt_None)
                Columns = New B1DbColumn() {New B1DbColumn("OCRD", "BondNo", "Bond No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OCRD", "BFrDate", "Bond From Date", BoFieldTypes.db_Date, BoFldSubTypes.st_None, 10, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OCRD", "BTDate", "Bond To Date", BoFieldTypes.db_Date, BoFldSubTypes.st_None, 10, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cntner_no", "Container No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cntnr_Seal", "Container Seal No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "Cust_Seal", "Custom Seal No.", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1), New B1DbColumn("OINV", "ctryOrgn", "Country of Origin", BoFieldTypes.db_Alpha, BoFldSubTypes.st_None, 20, New B1WizardBase.B1DbValidValue(-1) {}, -1)}
                GC.Collect()
                B1Connections.theAppl.StatusBar.SetText("Successfully updated database", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success)
            End Sub
        End Class
    End Namespace
    It does not give first message. and second message come properly and immediately when I start the AddOn. I checked it makes all fields accuratly. But when I open the related form it gives error message "Data Source not found". I checked fields name are same as used in form and database .What can the reason? Should I use a simple function for creation of database fields which will run when a button is pressed? Is it fine to using default class for database fields creation?
    Thanks
    Best Regards
    Jitender

    I solved the problem.
    Procedure I followed :
    UNINSTALL ORACLE WRAEHOUSE BUILDER SOFTAWARE.
    'GLOBAL_NAMES = FALSE' in init.ora file.
    RESTARTED MY MACHINE.
    INSTALL THE ORACLE WRAEHOUSE BUILDER SOFTAWARE.

  • Potential Windows Update database error detected 0x80070490

    This is the response I get when I run the Windows update troubleshooter from the Windows 8.1 Action Center.  If I click next it reports the errors have been fixed.  However if I run it again it reports exactly the same errors.
    After searching the Internet I have found that several users have reported having this issue.  As result of the aforementioned search I have tried the following:
    1) Run the Fixit tool for Windows 8.1 located at:
    http://support.microsoft.com/kb/971058/en-us.
    2) Run the System Update Readiness commands: DISM.exe /Online /Cleanup-image /Scanhealth and DISM.exe /Online /Cleanup-image /Restorehealth located at:
    http://support.microsoft.com/kb/947821/en-us.
    3) Saved contents of C:\Windows\System32\catroot2 to a temp folder and then deleted contents of C:\Windows\System32\catroot2.
    4)Renamed C:\Windows\SoftwareDistribution to C:\Windows\SoftwareDistribution.old
    5) Restarted Windows 8.1.
    6) Verified that C:\Windows\System32\catroot2 and that C:Windows\SoftwareDistribution folders had been rebuilt.
    7) I then ran the Windows update troubleshooter from the Window 8.1 Action Center again and got the same response as listed above. The errors still exist and are not fixed.
    8) Finally, I downloaded Windows 8.1 Enterprise Evaluation and I did a completely new clean install of Windows 8.1 and without installing anything else (no updates, no software, no antivirus) the above errors appeared within minutes after connecting
    to the internet.  I checked using the Windows update troubleshooter several times before connecting to the Internet and each time no problems were found, but shortly after I connected the above errors are shown to exists.
    Any suggestions that will help fix this issue will be of great help.

    Did anyone ever find an actual fix for this problem?  I have a very similar problem.  I have gone through the same steps for fixing my issues with getting a message of problems found every time I run the Windows Update troubleshooter.  It
    continually finds what it says are Potential Windows Update Database error detected 0x800700D and says they are fixed, along with another message saying Windows Update components must be repaired and it says they are fixed as well.  However, each time
    I run the troubleshooter it finds the same issues.  I have no problems running Windows Update under Windows 8.1 and them all installing without issue, yet I can't download or update ANY apps within the MS store and like the problem above, when it looks
    for my apps it says it's having problems finding them and to try later.  If I try to download even a free app, I get an error message that something happened and your purchase can't be completed. Error code: 0x80096004.
    I have dug through everything I can find on this error message and tried changing my sign in on my laptop to a local account, created a new MS account to access the store and continue to get the same error message.  I have tried it with my Kaspersky
    Internet Security 2015 turned completely off.  I've also ran SFC scannow and there are no errors and have ran DISM which found a problem but says it was fixed.  After running it again, there were no errors.  I have no other problems with anything
    else (that I know of on my machine).  It is an Asus Q400A and came with Windows 8.0.  I ran all the updates and then upgraded to 8.1 through the MS store without issue.  I have installed all updates since upgrading to 8.1 and have absolutely
    no problem running ANY updates, but can't seem to access the store no matter what I try.
    If anyone has found a solution to this I'd appreciate your input.  Hard to believe MS would put out a product that has such a basic problem that has affected so many users and can't seem to come up with some resolution that doesn't require registry
    editing, running commands from elevated command prompts, and a CS degree to resolve--there are soooo many issues online regarding this kind of error and others related to running SFC and DISM...most ending up in their ultimate default answer....renew or reinstall
    Windows and all the updates....which still doesn't resolve the problem for many!  I've always been a PC guy, but I'm starting to like the MacBook Pro I picked for work related reasons with great hesitation.  I've wasted more time chasing this issue
    down than I all the time I've spent actually using the Mac without even a hitch!
    Thx in advance for any feedback....please no MAC blasting....at this point, it would be not well received!!

  • Function in SQL: PRAGMA used, but '..does not guarantee not to update database'- WHY?

    I use function in SQL statement. It is a dynamicaly build SQL, therefore I need overload functions. These funcs defined in package. The package has PRAGMA Restrict_References (.., WNDS). So all functions should be restricted to update database.
    But Oracle returns an error:
    Function NVL_ does not guarantee not to update database
    This is my build SQL:
    ----- the execution string is: ---------------
    Begin
    INSERT INTO TEST_TBL_BS (MILL_ORDER, CLM1, CLM2, CLM3, NOTES, INIT_DATE )
    VALUES (NV.NVL_(Arc_Utl.TEST_TBL_dltd.MILL_ORDER),
    NV.NVL_(Arc_Utl.TEST_TBL_dltd.CLM1),
    NV.NVL_(Arc_Utl.TEST_TBL_dltd.CLM2),
    NV.NVL_(Arc_Utl.TEST_TBL_dltd.CLM3),
    NV.NVL_(Arc_Utl.TEST_TBL_dltd.NOTES),
    Arch.Init_Time );
    End;
    This is NV package:
    PACKAGE NV IS
    PRAGMA Restrict_References ( NV, WNDS );
    NULL_date DATE := TO_DATE ('01/01/1001', 'mm/dd/yyyy');
    NULL_numb NUMBER := 0;
    NULL_str VARCHAR2 (10)
    := '?';
    -- overloaded NULL_Val function returns NULL_<type> value (defined early)
    -- depend on received variable type
    FUNCTION NULL_Val ( val_in IN DATE )
    RETURN DATE ;
    FUNCTION NULL_Val ( val_in IN NUMBER )
    RETURN NUMBER ;
    FUNCTION NULL_Val ( val_in IN VARCHAR2 )
    RETURN VARCHAR2 ;
    -- PRAGMA Restrict_References ( NULL_Val, WNDS ); -- can be used in SQLs
    -- these pretends to cover hole of the SYS.NVL that do not have posibility
    -- to return default NULL value for every given type
    FUNCTION NVL_ ( val_in IN DATE )
    RETURN DATE ;
    FUNCTION NVL_ ( val_in IN NUMBER )
    RETURN NUMBER ;
    FUNCTION NVL_ ( val_in IN VARCHAR2 )
    RETURN VARCHAR2 ;
    -- PRAGMA Restrict_References ( NVL_, WNDS ); -- can be used in SQLs
    END NV;
    CREATE OR REPLACE PACKAGE BODY NV AS
    -- NULL_Val set of overloaded functions - returns appropriate NULL value
    FUNCTION NULL_Val ( val_in IN DATE )
    RETURN DATE IS
    BEGIN RETURN NULL_date;
    END NULL_Val; -- for date
    FUNCTION NULL_Val ( val_in IN NUMBER )
    RETURN NUMBER IS
    BEGIN RETURN NULL_numb;
    END NULL_Val; -- for NUMBER
    FUNCTION NULL_Val ( val_in IN VARCHAR2 )
    RETURN VARCHAR2 IS
    BEGIN RETURN NULL_str;
    END NULL_Val; -- for VARCHAR2
    -- set NVL_ function to return default NULL value if received variable
    -- is NULL or the received variable if it is not NULL
    FUNCTION NVL_ ( val_in IN DATE )
    RETURN DATE IS
    BEGIN RETURN NVL( val_in, NULL_Val ( val_in )); END NVL_;
    FUNCTION NVL_ ( val_in IN NUMBER )
    RETURN NUMBER IS
    BEGIN RETURN NVL( val_in, NULL_Val ( val_in )); END NVL_;
    FUNCTION NVL_ ( val_in IN VARCHAR2 )
    RETURN VARCHAR2 IS
    BEGIN RETURN NVL( val_in, NULL_Val ( val_in )); END NVL_;
    END NV;
    Can anybody help : where is a problem and what I can do in my case?
    I work in Oracle 7.3
    Thank you,
    Alex

    Hi Alex,
    I've found that on the RDBS docs:
    If you specify DEFAULT instead of a function name, the pragma applies to all functions in the package spec or object type spec (including, in the latter case, the
    system-defined constructor). You can still declare the pragma for individual functions. Such pragmas override the default pragma.
    Try using that and let me know.
    The docs says also that the declaration of the pragma for an overloaded function applies to the nearest one. You may also try to insert several declaration, one after every function declaration.
    Bye Max

  • Web form not updating database with stored procedure

    Hello
    i have a problem with the web form updating the database i have a stored procedure which i need to connect to. If i execute the procedure in the SQL it will update the database but when i run the web form i get my catch error "could not update database".
    I have read so much on the net and my code seem ok but i,m just so lost.
    stored procedure
    PROCEDURE [dbo].[UpdateCustomer]
    @ID INT,
    @Firstname VARCHAR(30),
    @Surname VARCHAR(30),
    @Age INT
    AS
    BEGIN
    UPDATE Customer
    SET Firstname = @Firstname,
    Surname = @Surname,
    Age = @Age
    WHERE CustID = @ID
    END
    update code
    try
    SqlCommand command = new SqlCommand();
    command.Connection = conn;
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "UpdateCustomer";
    command.Connection.Open();
    SqlParameter param = new SqlParameter();
    param.ParameterName = "@ID";
    param.SqlDbType = SqlDbType.Int;
    param.Direction = ParameterDirection.Input;
    param.Value = txtCustID.Text;
    command.Parameters.Add(param);
    command.Parameters.AddWithValue("@CustID", txtCustID.Text.ToString());
    command.Parameters.AddWithValue("@Firstname", txtFirstname.Text);
    command.Parameters.AddWithValue("@Surname", txtSurname.Text);
    command.Parameters.AddWithValue("@Gender", Gender.Text.ToString());
    command.Parameters.AddWithValue("@Age" ,txtAge.Text.ToString());
    command.Parameters.AddWithValue("@Address1", txtAddress1.Text.ToString());
    command.Parameters.AddWithValue("@Address2", txtAddress2.Text.ToString());
    command.Parameters.AddWithValue("@City", txtCity.Text.ToString());
    command.Parameters.AddWithValue("@Phone", txtPhone.Text.ToString());
    command.Parameters.AddWithValue("@Mobile", txtMobile.Text.ToString());
    command.Parameters.AddWithValue("@Email", txtEmail.Text.ToString());
    command.ExecuteNonQuery();
    lblMessage.Text = "Your Record(s) Have been Updated";
    command.Connection.Close();
    catch
    lblMessage.Text = "Your Record was not updated please try again";
    Thank you for your help

    To expand on Mike's advice.
    Change your catch to:
    catch(Exception ex)
    { // Break point here
    lblMessage.Text = "Your Record was not updated please try again";
    Put a break point in where the comment says.
    Run it.
    Hover over ex or add a quickwatch ( right click it ) and see what the error and inner exception is.
    I see several problems though.
    You have way too many parameters and Age should be int.
    They are objects  - they have a type.
    It'll be a string with your code there.
    Something more like
    command.Parameters.Add("@Age", SqlDbType.Int);
    command.Parameters["@Age"].Value = Convert.ToInt32(txtAge.Text);
    Although that might not cut and paste, it's air code intended to give you the idea.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Anybody have problems updating from Leopard 10.5.8 to Snow Leopard 10.6.3, or can I expect an easy update?

    Anybody have problems updating from Leopard 10.5.8 to Snow Leopard 10.6.3, or can I expect an easy update?

    rrk224 wrote:
    Anybody have problems updating from Leopard 10.5.8 to Snow Leopard 10.6.3, or can I expect an easy update?
    You shouldn't have too much trouble provided you have a relatively clean system.
    You should backup your personal users folders off the machine to a regular storage drive (not TimeMachine) and disconnect.
    10.6 upgrade strips out the 10.5 PPC code your not using and offers faster video drivers and some neat features like Exposé and Spaces which is highly productive as you can have 4-16 desktops visible at once and move stuff around between them (10.7 ripped that out)
    10.6 is the fastest OS X version Apple has made, 10.5 is universal (more code and older video drivers) and 10.7 is slower than 10.6 in tests on the same hardware.
    Your 10.5 install disk should be working, (check it first) stick it in and reboot holding the c key down, you should be able to boot from the disk. Apple isn't offering replacement 10.5 disks anymore so it needs to work in case you want to downgrade from 10.6.
    You can learn how to make copies of your 10.5 disk online. I would do so.
    You might decide to Carbon Copy Cloner (free/donations) your present 10.5 system to a blank external powered drive, you then can hold the option key and boot from it, erase and reverse clone back to your internal drive if you wish.
    10.6 will run all your 10.5 software (some may need a update) as it has Rosetta, a compatibility system for 10.5 code. 10.7 does not, it will not run your present Rosetta/10.5 software at all, you will have to buy all new versions. Also older hardware likely won't work neither, like printers, scanners and all-in-ones etc as their drivers either won't get a update or they won't make one to force a premature hardware turnover.
    If your upgrading your older 10.5 machine to 10.7, I'd advise against it, there isn't as much software ready for 10.7 (like 10.6) because it's forcing developers to rewrite their PPC based code
    10.7 is slower and more glitchs than 10.6, more depressing gray all over and strange UI changes.
    Also 10.8 is due out this summer and may not run on older hardware, so it's looking like you will be best off with 10.6.8 and leaving it at that to get the most software choice/performance and leave 10.8 for a new hardware/software purchase.
    If your going to 10.7 anyway, then check this database to make sure the software your going to have to buy is ready or not. IMO, Lion for you and your older machine is a wasted effort and better the new software on a new hardware purchase.
    http://roaringapps.com/apps:table
    I must admit though I throughly hate OS X Lion, as do a lot of other people,  it's only because it's quality is absolutely terrible and unbecoming of Apple, likely why Mountain Lion 10.8 is being released this summer a year in advance and only a year after Lion. However my opinion about Lion's poor quality isn't relfected in my advice to you. For you it's more of a older hardware/have to buy all new software type deal which a newer machine with 10.8 and promises to be better/more refined OS than 10.7.
    So in other words, upgrade to 10.6.8 and stay there, save your pennies for a new machine Early 2013, by then 10.8 would have several months and a lot of software/bugs worked out for it.

  • Error when Updating database Statistics

    Hi all,
       I'm installing Database instance Of SAP R3E 4.7 extension set 2 SR1 on Window 2003 , orcle 9.2 (patch 9.2.0.8.0) . I got an error while Updating database Statictics is processing. How can i solve this problem
    Log error is:
    WARNING 2007-09-12 14:14:26
    Execution of the command "C:\usr\sap\C11\SYS\exe\run/brconnect -u / -c -f crsyn -o SAPC11" finished with return code 3.
    Output: BR0801I BRCONNECT 6.40 (45)BR0252E Function _popen() failed for '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' at location BrPipeOpen-4BR0253E
    errno 2: No such file or directoryBR0272E Execution of program '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' through pipe failedBR0303E Determination of Oracle version failed
    BR0801I BRCONNECT 6.40 (45)
    BR0252E Function _popen() failed for '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' at location BrPipeOpen-4
    BR0253E errno 2: No such file or directory
    BR0272E Execution of program '( C:\oracle\c11\920\bin\SQLPLUS /nolog ) < \nul 2>&1' through pipe failed
    BR0303E Determination of Oracle version failed
    BR0280I BRCONNECT time stamp: 2007-09-12 14.14.26
    BR0804I BRCONNECT terminated with errors
    BR,
    Keng
    Message was edited by:
            Prachya Pantuyakorn

    they should normaly exist in the database.
    try to run
    sqlplus /nolog
    connect / as sysdba
    select username from dba_users;
    put if the don't exist:
    sqlplus /nolog
    connect / as sysdba
    create user "OPS$COMPUTERNAME\NW4ADM" identified externally;
    grant sapconn to "OPS$COMPUTERNAME\NW4ADM";
    grant sapdba to "OPS$COMPUTERNAME\NW4ADM";
    the rest should be part of note 50088
    peter

  • Could not update database error while installation

    Hi i am in the middle of 4.7 installation (IDES). At the step 29 database update statistics, system stops giving error
    ERROR 2008-04-30 09:10:35
    CJS-00288  Could not update database statistics.
    <br>DIAGNOSIS: Command brconnect -u / -c -f crsyn -o SAPP47 returned
    3.<br>SOLUTION: See brconnect.log for details.
    Can anybody tell what could be the problem.
    Thanks in advance

    Hi
    Thanks for your reply. Following are the details of file brconnect.log:
    BR0801I BRCONNECT 7.00 (16)
    BR0999E Loading of SQL client library oci.dll failed - please check Oracle configuration
    BR0310E Connect to database instance P47 failed
    BR0280I BRCONNECT time stamp: 2008-04-30 09.10.35
    BR0804I BRCONNECT terminated with errors

Maybe you are looking for