Why is my update code running fine yet not actually updating the table?

When I step through this, it runs fine - the call to Commit executes without dropping into the Rollback block. Yet, the grid (and the underlying table) are not updated.
private void buttonUpdate_Click(object sender, EventArgs e)
const int TICKETID_COLUMN = 0;
String _ticketID = Convert.ToString(dataGridView1.CurrentRow.Cells[TICKETID_COLUMN].Value);
UpdateRecord(
_ticketID,
textBoxTicketSource.Text,
textBoxContactEmail.Text,
textBoxAboutLLSID.Text,
textBoxCategoryID.Text);
private void UpdateRecord(string ATicketID, string ATicketSource, string AContactsEmail, string AAboutLLSID, string ACategoryID)
try
con = new OracleConnection(oradb);
con.Open();
String update = @"UPDATE LLS.INTERPRETERTICKETS
SET TICKETSOURCE = :p_TICKETSOURCE,
ABOUTLLSID = :p_ABOUTLLSID,
CATEGORYID = :p_CATEGORYID,
CONTACTEMAIL = :p_CONTACTEMAIL
WHERE TICKETID = :p_TICKETID";
cmd = new OracleCommand(update, con);
cmd.CommandType = CommandType.Text;
// TICKETSOURCE, ABOUTLLSID, CATEGORYID, CONTACTEMAIL, TICKETID
OracleParameter p_TICKETSOURCE =
new OracleParameter("p_TICKETSOURCE", OracleDbType.NVarchar2, ParameterDirection.Input);
p_TICKETSOURCE.Size = 20;
p_TICKETSOURCE.Value = ATicketSource;
cmd.Parameters.Add(p_TICKETSOURCE);
OracleParameter p_ABOUTLLSID =
new OracleParameter("p_ABOUTLLSID", OracleDbType.Int32, ParameterDirection.Input);
p_ABOUTLLSID.Value = AAboutLLSID;
cmd.Parameters.Add(p_ABOUTLLSID);
OracleParameter p_CATEGORYID =
new OracleParameter("p_CATEGORYID", OracleDbType.Int32, ParameterDirection.Input);
p_CATEGORYID.Value = ACategoryID;
cmd.Parameters.Add(p_CATEGORYID);
OracleParameter p_CONTACTEMAIL =
new OracleParameter("p_CONTACTEMAIL", OracleDbType.NVarchar2, ParameterDirection.Input);
p_CONTACTEMAIL.Size = 100;
p_CONTACTEMAIL.Value = AContactsEmail;
cmd.Parameters.Add(p_CONTACTEMAIL);
OracleParameter p_TICKETID =
new OracleParameter("p_TICKETID", OracleDbType.NVarchar2, ParameterDirection.Input);
p_TICKETID.Size = 20;
p_TICKETID.Value = ATicketID;
cmd.Parameters.Add(p_TICKETID);
try
using (var transaction = con.BeginTransaction())
cmd.Transaction = transaction;
cmd.ExecuteNonQuery();
transaction.Commit();
catch (Exception ex)
ot.Rollback();
throw;
MessageBox.Show("Apparent success");
finally
con.Close();
con.Dispose();
dataGridView1.Refresh();
}

It's hard to say with the limited information available. Nothing jumps out at me as being "wrong" in your code.
What is the Records Affected return value from cmd.ExecuteQuery?
I tested this and it worked fine for me:
SQL
========
SQL> create table interpretertickets (ticketsource nvarchar2(100),
  2  aboutllsid number,
  3  categoryid number,
  4  contactemail nvarchar2(100),
  5  ticketid nvarchar2(100));
Table created.
SQL>
SQL> insert into interpretertickets values(null,null,null,null,1);
1 row created.
SQL> commit;
Commit complete.
/////////////// CODE //////////////////////
        private void button1_Click(object sender, EventArgs e)
            string constr = "data source=orcl;user id=scott;password=tiger";
            OracleConnection con = new OracleConnection(constr);
            con.Open();
            String update = @"UPDATE INTERPRETERTICKETS
SET TICKETSOURCE = :p_TICKETSOURCE,
ABOUTLLSID = :p_ABOUTLLSID,
CATEGORYID = :p_CATEGORYID,
CONTACTEMAIL = :p_CONTACTEMAIL
WHERE TICKETID = :p_TICKETID";
            OracleCommand cmd = new OracleCommand(update, con);
            cmd.CommandType = CommandType.Text;
            // TICKETSOURCE, ABOUTLLSID, CATEGORYID, CONTACTEMAIL, TICKETID
            OracleParameter p_TICKETSOURCE =
            new OracleParameter("p_TICKETSOURCE", OracleDbType.NVarchar2, ParameterDirection.Input);
            p_TICKETSOURCE.Size = 20;
            p_TICKETSOURCE.Value = "newval1";
            cmd.Parameters.Add(p_TICKETSOURCE);
            OracleParameter p_ABOUTLLSID =
            new OracleParameter("p_ABOUTLLSID", OracleDbType.Int32, ParameterDirection.Input);
            p_ABOUTLLSID.Value = 123;
            cmd.Parameters.Add(p_ABOUTLLSID);
            OracleParameter p_CATEGORYID =
            new OracleParameter("p_CATEGORYID", OracleDbType.Int32, ParameterDirection.Input);
            p_CATEGORYID.Value = 456;
            cmd.Parameters.Add(p_CATEGORYID);
            OracleParameter p_CONTACTEMAIL =
            new OracleParameter("p_CONTACTEMAIL", OracleDbType.NVarchar2, ParameterDirection.Input);
            p_CONTACTEMAIL.Size = 100;
            p_CONTACTEMAIL.Value = "[email protected]";
            cmd.Parameters.Add(p_CONTACTEMAIL);
            OracleParameter p_TICKETID =
            new OracleParameter("p_TICKETID", OracleDbType.NVarchar2, ParameterDirection.Input);
            p_TICKETID.Size = 20;
            p_TICKETID.Value = 1;
            cmd.Parameters.Add(p_TICKETID);
            using (var transaction = con.BeginTransaction())
                cmd.Transaction = transaction;
                int recaff = cmd.ExecuteNonQuery();
                MessageBox.Show("records affected: " + recaff);
                transaction.Commit();
        }

Similar Messages

  • Code runs fine in debug mode but hangs when compiled in release mode

    I am struggling with the following problem. I have code which runs fine when it is executed in debug mode. However, when I compile it in release mode and run the executable, the code freezes and does not work. The code acquires images from a Hamamatsu camera. In the debug mode I am able to continuously acquire images. However, in the release version, the code hangs after acquiring the first image.
    I am using LabWindows/CVI version 7.
    I would greatly appreciate if I can get any help/suggestions in resolving this problem?
    Thanks!
    Regards,
    Sripad
    Solved!
    Go to Solution.

    Sripad:
    If you search this forum for "debug release crash" or "release version crash" or similar phrases, you'll find that this is a pretty common question.  Look through the other posts you find here to see if anything is applicable to you.
    The debug version does some things like padding variables so you can sometimes overrun your declared variable space without overwriting the next variable.  In the release, the variables are packed, so if you overrun one, you are overwriting another.  Just one possible difference.
    You can do some things in your release code to see where things get lost, like (temporarily using printf statements after multiple statements at the start and end of your loop to try to identify that failing line of code.
    Look through other threads to find other ideas.

  • Why won't my MacBook run on battery and display on the monitor?      Runs fine if power cord is plugged in.                                                                                      I have to be plugged in to see the monitor display.  Any ideas

    Why won't my laptop run on battery and display on the monitor?  If it is plugged in to power it works fine but the monitor goes blank if the power cord is removed.  Any ideas?

    Nothing is wrong.  what your're seeing is by design.

  • Why i cannot update the digital camera RAW COMPATIBILITY UPDTE 5.0.4 AND ALWAYS ASK TO UPDATE IT WITHOUT UPDATING

    why i cannot update the digital camera RAW COMPATIBILITY UPDATE IN MY macbook pro with retina display and always ask me to update it without success

    toniak61 wrote:
    why i cannot update the digital camera RAW COMPATIBILITY UPDATE IN MY macbook pro with retina display and always ask me to update it without success
    Because something is wrong.  Most likely, either:
    (1) your Mac OS X Startup disk is damaged and you need to repair or reinstall OS X,
         - or -
    (2) you are not following the correct update workflow and should use the help from this Apple article. 
    For instance, if you are trying to update via  > Software Update..., restart Mac and download and install the Download Center version: Digital Camera RAW Compatibility Update 5.04.

  • Why does Adobe update the Creative Cloud?

    Why does Adobe update the Creative Cloud and not to software I purchased to the same level?

    Kurt Lang wrote:
    See also: FASB revenue recognition GAAP
    To the best of my recollection, that is what the Adobe rep mentioned. If you look up that phrase, the top return in Google is a PDF file explaining how it works. Good luck understanding it even if you're a CPA.
    John Waller has added another link on that revenue law.
    To be clear, the accounting issue called GAAP for revenue recognition states that the way Adobe counts R&D and development costs are applied to a specific product version for that version's lifetime. So, all of the Photoshop CS6 perpetual license development cost are applied against the revenue produced by that specific version. Adobe is allowed to add bug fixes and maintenance updates, but no new features for the life of that version. And, yes, this sucks for several reasons not the least of which is that the engineers are forced to try to shove as much new stuff into the most recent version and any updates that can be done prior to the end of the quarter in which a version ships because after that date, new features can't be added.
    Generally accepted accounting procedures pretty much force Adobe into this accounting. Yes, there are other accounting methods that would mitigate this, and the subscription license is one such option. Since the subscription revenue os an ongoing stream, Adobe can add new features as functionality to subscription users. Unfortunately, the users of a perperual license can not get those new features and functionality, only new bug fixes.
    The bottom line is that sucscription users get the added advantage of getting new features and functionality while perperual license users do not. Yep...kinda sucks, but it is, what it is and it's not really Adobe's fault...the accounting regulations I believe actually came into enforcement because of the whole Enron scandle...
    I realize this sort of explanation is akin to talking about sausage making...nobody really want to know how sausage is made, they just want to eat it. Same deal with Photoshop users...nobody really want to know how Adobe has to do their accounting, but the realities dictate what Adobe can and can't do...
    BTW, this all has zero to do with state sales tax...although there my be state to state differences on whether a state charges tax for software. But that has zero to do with Photoshop development.

  • HT4972 My iOS is 4.3.3, is it third generation of ipod? why I cannot update the iOS? thank you

    My ipod has iOS 4.3.3, is it third generation? How to get information what generation is it? Why I can update the iOS? I also cannot restore the original setting. Anyone can help? thank you very much

    Dj Galaxy-Beat, what is this gigerish you are saying? Only the 4G iPod has any cameras, it has two.
    Dj Galaxy-Beat wrote:
    ...does your iPod has any cameras?? If yes and it has one in the back its an 3rd generation and if it has 2 cameras its 4th generation..If it has no cameras its an 2nd generation

  • Code To Update the Table in ECC from Webdynpro

    Hi All,
    I want to know, the table is dispalyed in the webdynpro browser when we calls the Adaptive RFC Model.
    after i want to add one more row in the webdynpro and just clicking on add button the row will be updated in the ECC server(backend) for that how can i write the coding,  regarding this issue can you please help me.
    ThanX All,

    Hi Sriram,
              Assuming you have a table filled with records by adding one by one, If you want to update a table in SAP ECC, follow these steps..   i think already you are triggering the action for the button in view(for table updation) to method in controller or created a custom controller and mapped the model node.
    1.  Initialize the main model node and bind the model node with the intialised object like
         Zbapi_MainModelNode_Input input = new Zbapi_MainModelNode_Input();
                           wdContext.nodeZbapi_MainModelNode_Input ().bind(input);     
    2.  Now loop the table node and set the values with corresponding class in the generated model (from webdynpro explorer) and initialize like
            IPrivateControllerName.ITableElement myTab = null;     
           for ( int i = 0; i < wdContext.nodeTable().size();i++)
                         myTab = this.wdContext.nodeTable().getTableElementAt(i);
         Bapi_structname name = new Bapi_structname();     
                        name.setFieldName1(myTab.getFieldName1);
                        name.setFieldName2(myTab.getFieldName2);
                        input.addT_Bapi_(name);
    Finally execute the BAPI..
       wdContext.currentZbapi_MainModelNode_Input tElement().modelObject().execute();
    Hope this solves your issue - Update the Table in ECC from Webdynpro.
    Regards,
    Manjunath
    Edited by: Manjunath Subramani on Nov 20, 2009 4:26 PM
    Edited by: Manjunath Subramani on Nov 20, 2009 4:27 PM

  • Error updating the table condition table 372 in J1IIN

    Hello all,
    I am facing the problem in the transaction code J1IIN (In CIN).
    I have maintained the condition type JEXP ( A/R BED %) as 16% with the Key combination Country/Plant/Control Code (Table 357). While iam saving the Excise invoice the system is throwing the error like Error updating the table condition table 372
    I have gone through the post given by Ms. Jyoti few days back and tried to do some changes in the customisation.
    I tried to maintain a different access sequence for the condition type JEXP i.e In the access sequence except condition table 372, I have maintained all other condition tables.
    Still the error is persisiting. Can anyone put some light on the issue.
    I have even traced the values being hit in the tables directly. There is no relation of table 372, then why is it being cause of the error.
    Gurus plz give ur suggestions.
    Thanks
    Srinivas

    Hello Srinivas/Sandeep
    Please ensure that access sequence in the condition type JEXC has got the table 372. If it is not there please maintain it.
    The standard access sequence used in all duty condition type
    is JEXC  which has got the table 372 this will get updated once
    you save your excise invoice.
      If the issue is resolved, kinldy close the message.
    Regards
    MBS

  • Error updating the table 372

    Hi Gurus,
    I maintained the JCEP ( A/R Cess %) as 3%. While iam saving the Excise invoice the system is throwing the error like error updating the table condition table 372
    Gurus plz give u r suggestions.
    regards,
    jyothi.
    Edited by: jyothi. on Feb 25, 2008 7:26 AM

    Hi Murali!
    Even I am facing the same problem while working in ECC 6.0 environment. I  am continuing in the same post as I feel it is most relevant post to continue the issue instead of opening a new issue.
    I tried to maintain a different access sequence for the condition type JEXP i.e a new Access sequence(ZJEX) and also a new condition tpe (ZJEP). We don't have other Excise condition type in our Pricing procedure.
    In the access sequence except condition table 372, I have maintained all other condition tables.
    We have maintained the values against table 357- Country/Plant/Control Code.
    Still the error is persisiting. Can you put some light on the issue.
    I have even traced the values being hit in the tables directly. There is no relation of table 372, then why is it being cause of the error.
    Thanks in advance,
    Regards,
    Karthik.

  • Doing new JTable doesn't "update" the table on the screen

    Hello
    I am writing a program in java/swing which has several "layers" of panels. In the constructor method of the frame (using JInternalFrame) I create a new instance of JTable, place it inside JScrollPane which is then inside JSplitPane and then place that as the frame content pane.
    In this program I run an sql command and the table is the result from that. Every time I execute a query it should update the table with the new results.
    What is bothering me now is that when I execute a query I call new JTable() on the variable that held the JTable() object created on startup. When I create a new instance of JTable() and place it in this variable nothing seems to happen. What I need is some kind of "refresh" button. I tried to construct the whole window again but then the program started behaving odd so I gave up that method.
    So, does anyone know how to do this?
    The code behind this class can be found at http://www.heilabu.net/kari/Session.java (little commented, sorry :/)
    You can see the table being constructed in the constructTable() method.
    If I am a bit unclear I apologize, don't know all these technical words in english ;)
    Thanks in advance!

    You really need to use a table model. The table you created is great and once that is in you shouldn't mess with it. Instead, when you create the table be sure to create it sort of like this:
    DefaultTableMode dtm = new DefaultTableModel(<various constrcutors use the one suited for you>);
    JTable table = new JTable(dtm);
    To set different data on the table set it in the table model and then refresh the table, also through the table model. This works perfectly every time.
    dtm.setDataVector(---) <- 2 methods, one for vectors and one for arrays...
    dtm.fireTableChanged();
    the folowing code shows exactly how to use it
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class RandomTable extends JFrame
    GridBagLayout gbl = new GridBagLayout();
    JPanel buttonPanel = new JPanel(gbl);
    JTable table = null;
    DefaultTableModel dtm = null;
    JScrollPane tableSP = new JScrollPane();
    JButton randomButton = new JButton("Randomize");
    Object[] headers = { "a", "b", "c", "d", "e" };
    public RandomTable()
    this.getContentPane().setLayout(gbl);
    randomButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent evt)
    dtm.setDataVector(randomStrings(), headers);
    this.dtm = new DefaultTableModel();
    this.table = new JTable(dtm);
    this.dtm.setDataVector(randomStrings(), headers);
    this.tableSP.getViewport().add(table);
    this.buttonPanel.add(randomButton, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    this.getContentPane().add(buttonPanel, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(3, 6, 6, 6), 0, 0));
    this.getContentPane().add(tableSP, new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(6, 6, 3, 6), 0, 0));
    this.setSize(300, 300);
    public Object[][] randomStrings()
    Random rand = new Random();
    int rowCount = Math.abs(rand.nextInt())%50;
    int colCount = headers.length;
    Object[][] array = new Object[rowCount][colCount];
    for(int row = 0; row < rowCount; row++)
    for(int col = 0; col < colCount; col++)
    array[row][col] = Long.toString(Math.abs(rand.nextLong())%100);
    return array;
    public static void main(String[] args)
    RandomTable rt = new RandomTable();
    rt.setVisible(true);
    }

  • How to write a procedure for update the table

    Hi all
    can any body please tell me how to write a procedure to update the table......
    I have a table with about 10,000 records...........Now I have add a new column and I want to add values for that like
    registration Code Creidits
    13213 BBA
    1232 MCS
    I had add the creidit now i want to update the table.........the new value want to get by SQL like
    Creidit = select creidit from othere_table...........
    Hope u can understand my problem
    Thanks in advance
    Regards
    Shayan
    [email protected]

    Please try the following --
    update Program_reg a
    set TotalCreidit = ( select tot_cr <Accroding to your logic>
                                from Program_reg b
                                where a.Registration = b.Registration
                                and    a.Enrollment = b.Enrollment
                                and    a.code = b.code
    where a.Registration in ( select distinct Registration
                                        from Program_reg );
    N.B.: Not Tested....
    Regards.
    Satyaki De.

  • IAM-3056160:Modify User Profile request cannot set or change attribute Job Code, since it is not defined in the corresponding data set.

    I am trying to modify the value of the field "Job Code" through API I am getting the following error.(OIM11gr2). I do not get this error when updating the other fields. There is a field by the name USR_JOB_CODE in the database. When I poked around I found that there is no Job Code field in the User Form. Any ideas?
    IAM-3056160:Modify User Profile request cannot set or change attribute Job Code, since it is not defined in the corresponding data set.:Modify User Profile:Job Code
    oracle.iam.identity.exception.ValidationFailedException: IAM-3056160:Modify User Profile request cannot set or change attribute Job Code, since it is not defined in the corresponding data set.:Modify User Profile:Job Code
           at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
           at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
           at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
           at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_1036_WLStub.modifyx(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
           at $Proxy2.modifyx(Unknown Source)
           at oracle.iam.identity.usermgmt.api.UserManagerDelegate.modify(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke

    THanks for your reply. Here is the snippet from User.xml that contains info about job code.
    <entity-attribute>Job Code</entity-attribute>
    <target-field>usr_job_code</target-field>
    <field name="usr_job_code">
    <type>string</type>
    <required>false</required>
    </field>
    <attribute name="Job Code">
    <type>string</type>
    <required>false</required>
    <searchable>true</searchable>
    <multi-valued>false</multi-valued>
    <MLS>false</MLS>
    <multi-represented>false</multi-represented>
    <attribute-group>Basic</attribute-group>
    <metadata-attachment>
    <metadata>
    <name>multi-valued</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>user-searchable</name>
    <value>true</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>category</name>
    <value>Preferences</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>bulk-updatable</name>
    <value>true</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>read-only</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>visible</name>
    <value>true</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>encryption</name>
    <value>CLEAR</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>display-type</name>
    <value>TEXT</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>system-controlled</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>max-size</name>
    <value>512</value>
    <category>properties</category>
    </metadata>
    <metadata>
    <name>custom</name>
    <value>false</value>
    <category>properties</category>
    </metadata>
    </metadata-attachment>
    </attribute>
    I am able to retrieve the value of the Job Code attribute without any problem with the following code.
    System.out.println("JOB Code: "+user.getAttribute("Job Code"));

  • Why i see this massegae? (iTunes could not connect to the iTunes store. You do not have enough access privileges for this operation. Make sure your connection is active and try again.)

    why i see this massegae? (iTunes could not connect to the iTunes store. You do not have enough access privileges for this operation. Make sure your connection is active and try again.)

    Hey there Hannuj,
    It sounds like you are unable to access the iTunes Store in the iTunes application. Based on the error message I would try the steps in the article here named:
    iTunes for Windows: iTunes Store connection troubleshooting
    http://support.apple.com/kb/HT1527
    Remove pop-up blockers
    Some pop-up or ad-blocking programs may interfere with the ability of iTunes to connect to the iTunes Store. Removing them in many cases will resolve the issue.
    Flush DNS Setting in Windows
    In some cases, the DNS information you computer uses to connect to the Internet needs to be reset. Follow these instructions to flush your Windows DNS information:
    Windows XP
    On the Start menu, click Run.
    In the Open field type cmd and click OK.
    In the resulting window, type ipconfig /flushdns and press Return on the keyboard.
    You should see a message that the DNS Resolver Cache has been successfully flushed.
    Windows Vista and Windows 7
    On the Start menu, point to All Programs > Accessories and then right-click Command Prompt and chooseRun as Administrator from the shortcut menu. If Windows needs your permission to continue, clickContinue.
    In the resulting window, type ipconfig /flushdns and press Return on the keyboard.
    You should see a message that the DNS Resolver Cache has been successfully flushed.
    Note: If, in the command prompt, you see this message: "The requested operation requires elevation", close the command prompt and repeat steps 1 and 2 above to be sure that Administrator privileges are used to access to Command Prompt.
    See the following articles for additional troubleshooting information on connecting to the iTunes Store:
    Can't connect to the iTunes Store.
    iTunes for Windows: Network Connectivity Tests
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Why does siri come on by itself while it sits on the table no one touching it?

    why does siri come on by itself while it sits on the table no one touching it?

    michael jfromtaunton wrote:
    why does siri come on by itself while it sits on the table no one touching it?
    If you're not running iOS 8 as you describe you are not, and Siri keeps coming on, this could be a hardware failure of the Home Button.
    Try these steps:
    Basic Troubleshooting Steps when all else fails
    - Quit the App by opening multi-tasking bar, and swiping the App upward to make it disappear.  (For iOS 6 older, hold down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.)
    - Relaunch the App and try again.
    - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • Update the table

    How to compare two table and update the table.
    I have table A where i have
    Table A
    select ssn,lname,fname,dob,cadcode,date... from table A
    SQL> /
    LNAME FNAME DOB SSN Status SOCKETNO
    King Jack 11111877 000000000
    Sue PAT 01021867 087543217
    Smit john 08061897     
    Table B
    SOCKETNO      SSN LNAME     FNAME     DOB     CADCODE     
    C873 000000000 Sue     Pat 03021988 C111
    C123 Kate Allen 01011999 V111
    D009 123987765 King Jack Y123
    K897 678987765 Mike Mellon 01111877 V178
    I have to compare two table based on the below conditions and update table A With Status =Y and SOCKETNO from table B if a matching record exists in Table B.
    condition If SSN from Table A to table B matches OR
    if SSN IS NULL OR ALL zeros then compare with FNAME and LNAME and DOB
    How can i achive this in a stored procedure?

    Hi,
    You have to make PROCEDURE anyway, you can use CURSOR as per your requirement.
    The sample code can look like this:
    CREATE OR REPLACE PROCEDURE UPDATE_A (PARAMS.....) IS
         CURSOR Cur_SOCKET IS  SELECT B.SOCKETNO, B.FNAME, B.LNAME, B.SSN, B.DOB
                            FROM A, B
                            WHERE (NVL(A.SSN,0) != 0
                                AND NVL(B.SSN,0) != 0
                                AND A.SSN = B.SSN)
                            OR ( NVL(A.SSN,0) = 0
                                AND NVL(B.SSN,0) = 0
                                AND A.FNAME = B.FNAME
                                AND A.LNAME = B.LNAME
                                AND A.DOB = B.DOB)
                   FOR UPDATE OF A.SOCKETNO, A.STATUS;
         Var_SOCKET Cur_SOCKET%ROWTYPE;
         Old_Var_SOCKET Cur_SOCKET%ROWTYPE;
    BEGIN
         OPEN Cur_SOCKET ;
         LOOP
              FETCH Cur_SOCKET INTO Var_SOCKET ;
              EXIT WHEN Cur_SOCKET%NOTFOUND ;
              IF Cur_SOCKET%ROWCOUNT = 1 THEN
                   UPDATE A
                        SET STATUS = 'Y',
                        SOCKETNO = Var_SOCKET.SOCKETNO
                   WHERE CURRENTOF Cur_SOCKET ;
              ELSIF (NVL(Old_Var_SOCKET.SSN,'X') = NVL(Var_SOCKET.SSN,'X') AND
                   NVL(Old_Var_SOCKET.FNAME,'X') = NVL(Var_SOCKET.FNAME,'X') AND
                   NVL(Old_Var_SOCKET.LNAME,'X') = NVL(Var_SOCKET.LNAME,'X') AND
                   NVL(Old_Var_SOCKET.DOB,'X') = NVL(Var_SOCKET.DOB,'X')) THEN
                   INSERT INTO A (....FIELDNAMES...) VALUES (.....VALUES....) ;
              END IF ;
              Old_Var_SOCKET.SSN = NVL(Var_SOCKET.SSN,'X') ;
              Old_Var_SOCKET.FNAME = NVL(Var_SOCKET.FNAME,'X') ;
              Old_Var_SOCKET.LNAME = NVL(Var_SOCKET.LNAME,'X') ;
              Old_Var_SOCKET.DOB = NVL(Var_SOCKET.DOB,'X') ;
         END LOOP;
         CLOSE Cur_SOCKET;
    END ;Regards,
    Arpit

Maybe you are looking for

  • WRT320N Can't get IP Address - only using 1 wired port - no internet access - web setup pages hang

    Just bought Linksys WRT320N to replace Netgear MR814. Can't get connected to internet using Linksys WRT320N.   Setup: ISP:  Cox Communications (Cable) Firmware: v1.0.03 build 010 Jul 24, 2009 1 wired - port 1- to Windows XP SP 3 Dell Desktop Setup At

  • Daily Broadcast Jobs are failing

    Hi, We are facing some issues in our production system related to broadcatsing. The daily broadcast jobs are faling or are running for long hrs (got tsuck). If we check the logs in RSRD_LOG then we can see the following message: Settings registered t

  • Bridge quits unexpectedly - cs6 - OS X 10.10.1

    I have adobe cs 6 running on 10.10.1 and bridge keeps unexpectedly quitting. When this happens a message appears that adobe has found a workaround and to "click here" to see it. However the click here button doesn't work and the computer just beeps a

  • Checkbox selected : row not rendering

    I am not able to set colors for the row that has checked checkboxes. I want to set red color for the row having checked checkboxes and green for unchecked. table.getColumnModel().getColumn(3).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),

  • Si tengo un iphone modelo mc319ll de apple como se puede desbloquear

    si tengo un iphone apple con modelo mc319ll se puede desbloquear de fabrica ya que estoy en costarica y no funciona como se puede hace