Repalce in insert command

Hi,
I need to use repalce command while inserting advice is appreciated.
sql>insert into prakash values (7, (replace('4, TRIVENI *'C'* BLDG, 400054'))
here i need to repalce single code
sugestions appreciated.
thanks
prakash GR

Kamran Agayev A. wrote:
I don't understand. If your are INSERTing, what's to replace?OP wants to insert data by replacing it. He wants replace the data while inserting it :)
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]
OK, I had to look that one up. Had never really noticed REPLACE before. The docs were pretty clear, but I still had to read the OP several more times to figure out what he is doing and why.
I've learned something new today. Can I go home now?

Similar Messages

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • IDOC to JDBC scenario: Does INSERT command expect a result value?

    Hello,
    we have an IDoc-to-JDBC-scenario configured on our XI 3.0, which uses the INSERT command to put a dataset coming from R/3 into a SQL database. This works fine.
    Now a trigger has been activated on the database, which sets a flag to each dataset after inserting.
    Because of this a system error occurs in the Adapter Engine and I found in the AuditLog (logSQLStatement=true), that the INSERT command is processed correcty, but in the next step an error is shown up: 'SQLServerException. A result set was generated for update.'
    Could it be, that the trigger returns a result value, which can't be handled on the XI ?
    If yes, how can I solve this issue? I have read something about the different methods execute(), executeUpdate() and executeQuery(), but I don't know how and where this has to be configured...
    Thanks in advance,
    Juergen

    Hi Upendra,
    I got some more information from the database adminstrator:
    He used the following command 'exec xp_cmdshell @ExportCmd , no_output'
    whereas @ExportCmd contains the command.
    With the no_output option, the xp_cmdshell does not return a recordset.
    I hope this will be helpful to you.
    Grtz,
    Juergen

  • Using insert command in NVL function

    How can we use insert command in a NVL function
    exapmle : INSERT INTO employee
    VALUES ( (NVL ( (SELECT emp_id
    FROM employee
    WHERE emp_name LIKE 'Test'),
    (insert into employee values((select max(emp_id)+1 from employee),'Test')))));
    I mean i will check for the record to exist in the table and if not exist i will add it to the table.

    998504 wrote:
    How can we use insert command in a NVL function
    exapmle : INSERT INTO employee
    VALUES ( (NVL ( (SELECT emp_id
    FROM employee
    WHERE emp_name LIKE 'Test'),
    (insert into employee values((select max(emp_id)+1 from employee),'Test')))));
    I mean i will check for the record to exist in the table and if not exist i will add it to the table.The first thing caught my eye is this
    max(emp_id) +1A real bad piece of code. Never do that. Ever thought about multi user environment? Use a SEQUENCE.
    If you want EMP_NAME to be unique (Which looks strange to me), then just add a UNIQUE constraint. You dont try to do what oracle already does really well.

  • Using textboxes in insert command

    Sir,
    I had a doubt about insert command while I was trying to give the content of the swing text boxes as the arguments to the insert command.Is it possible?.How can i give values to the fields of a table through GUI components.

    Hi,
    I meant using text boxes in insert statement.because all time we should not give literals.we should have got inputs from swing panel from which we have to
    insert data into tables.So I asked how can i give variables or input GUI Components as arguments of insert statement. Also I gave the code below
    //CRM Sections Campaign
    //package marketing;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class CRM_Marketing_1B extends JFrame implements ActionListener
    JOptionPane joptMessage;
    JButton jbtnSave;
    JButton jbtnClear;
    JButton jbtnExit=new JButton("Exit");
    public CRM_Marketing_1B(String title)
    Container conMarketingPane=getContentPane();
    conMarketingPane.setLayout(new FlowLayout());
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JLabel lblCustomer_Id=new JLabel("Customer ID");
    JLabel lblCustomer_Name=new JLabel("Customer Name");
    JLabel lblCompany_Name=new JLabel("Company Name");
    JLabel lblDesignation=new JLabel("Designation");
    JLabel lblAddress1=new JLabel("Address1");
    JLabel lblAddress2=new JLabel("Address2");
    JLabel lblQuantity=new JLabel("Quantity");
    JLabel lblUnit_Price=new JLabel("Unit Price");
    JLabel lblInterest_Level=new JLabel("Interest Level");
    JLabel lblContact_No=new JLabel("Contact No");
    JLabel lblMobile_No=new JLabel("Mobile No");
    JLabel lblEmail=new JLabel("Email Address");
    JLabel lblEmployee_Id=new JLabel("Employee ID");
    JLabel lblCampaign_Date=new JLabel("Campaign Date");
    JLabel lblNext_Appointment=new JLabel("Next Appointment");
    JLabel lblCampaign_Id=new JLabel("Campaign ID");
    JLabel lblTeam_Id=new JLabel("Team ID");
    JLabel lblOrder_No=new JLabel("Order No");
    JLabel lblResult=new JLabel("Result");
    JTextField txfCustomer_Id=new JTextField(30);
    JTextField txfCustomer_Name=new JTextField(30);
    JTextField txfCompany_Name=new JTextField(30);
    JTextField txfDesignation=new JTextField(30);
    JTextField txfAddress1=new JTextField(30);
    JTextField txfAddress2=new JTextField(30);
    JTextField txfQuantity=new JTextField(30);
    JTextField txfUnit_Price=new JTextField(30);
    JTextField txfInterest_Level=new JTextField(30);
    JTextField txfContact_No=new JTextField(30);
    JTextField txfMobile_No=new JTextField(30);
    JTextField txfEmail=new JTextField(30);
    JTextField txfEmployee_Id=new JTextField(30);
    JTextField txfCampaign_Date=new JTextField(30);
    JTextField txfNext_Appointment=new JTextField(30);
    JTextField txfCampaign_Id=new JTextField(30);
    JTextField txfTeam_Id=new JTextField(30);
    JTextField txfOrder_No=new JTextField(30);
    JTextField txfResult=new JTextField(30);
    JButton jbtnSave=new JButton("Save");
    JButton jbtnClear=new JButton("Clear");
    JButton jbtnExit=new JButton("Exit");
    conMarketingPane.add(lblCustomer_Id);
    conMarketingPane.add(lblCustomer_Name);
    conMarketingPane.add(lblCompany_Name);
    conMarketingPane.add(lblDesignation);
    conMarketingPane.add(lblAddress1);
    conMarketingPane.add(lblAddress2);
    conMarketingPane.add(lblQuantity);
    conMarketingPane.add(lblUnit_Price);
    conMarketingPane.add(lblInterest_Level);
    conMarketingPane.add(lblContact_No);
    conMarketingPane.add(lblMobile_No);
    conMarketingPane.add(lblEmail);
    conMarketingPane.add(lblEmployee_Id);
    conMarketingPane.add(lblCampaign_Date);
    conMarketingPane.add(lblNext_Appointment);
    conMarketingPane.add(lblCampaign_Id);
    conMarketingPane.add(lblTeam_Id);
    conMarketingPane.add(lblOrder_No);
    conMarketingPane.add(lblResult);
    conMarketingPane.add(txfCustomer_Id);
    conMarketingPane.add(txfCustomer_Name);
    conMarketingPane.add(txfCompany_Name);
    conMarketingPane.add(txfDesignation);
    conMarketingPane.add(txfAddress1);
    conMarketingPane.add(txfAddress2);
    conMarketingPane.add(txfQuantity);
    conMarketingPane.add(txfUnit_Price);
    conMarketingPane.add(txfInterest_Level);
    conMarketingPane.add(txfContact_No);
    conMarketingPane.add(txfMobile_No);
    conMarketingPane.add(txfEmail);
    conMarketingPane.add(txfEmployee_Id);
    conMarketingPane.add(txfCampaign_Date);
    conMarketingPane.add(txfNext_Appointment);
    conMarketingPane.add(txfCampaign_Id);
    conMarketingPane.add(txfTeam_Id);
    conMarketingPane.add(txfOrder_No);
    conMarketingPane.add(txfResult);
    conMarketingPane.add(jbtnSave);
    conMarketingPane.add(jbtnClear);
    conMarketingPane.add(jbtnExit);
    setSize(900,900);
    setVisible(true);
    lblCustomer_Id.setLocation(50,50);
    lblCustomer_Name.setLocation(50,70);
    lblCompany_Name.setLocation(50,90);
    lblDesignation.setLocation(50,110);
    lblAddress1.setLocation(50,130);
    lblAddress2.setLocation(50,150);
    lblQuantity.setLocation(50,170);
    lblUnit_Price.setLocation(50,190);
    lblInterest_Level.setLocation(50,210);
    lblContact_No.setLocation(50,230);
    lblMobile_No.setLocation(50,250);
    lblEmail.setLocation(50,270);
    lblEmployee_Id.setLocation(50,290);
    lblCampaign_Date.setLocation(50,310);
    lblNext_Appointment.setLocation(50,330);
    lblCampaign_Id.setLocation(50,350);
    lblTeam_Id.setLocation(50,370);
    lblOrder_No.setLocation(50,390);
    lblResult.setLocation(50,410);
    txfCustomer_Id.setLocation(250,50);
    txfCustomer_Name.setLocation(250,70);
    txfCompany_Name.setLocation(250,90);
    txfDesignation.setLocation(250,110);
    txfAddress1.setLocation(250,130);
    txfAddress2.setLocation(250,150);
    txfQuantity.setLocation(250,170);
    txfUnit_Price.setLocation(250,190);
    txfInterest_Level.setLocation(250,210);
    txfContact_No.setLocation(250,230);
    txfMobile_No.setLocation(250,250);
    txfEmail.setLocation(250,270);
    txfEmployee_Id.setLocation(250,290);
    txfCampaign_Date.setLocation(250,310);
    txfNext_Appointment.setLocation(250,330);
    txfCampaign_Id.setLocation(250,350);
    txfTeam_Id.setLocation(250,370);
    txfOrder_No.setLocation(250,390);
    txfResult.setLocation(250,410);
    jbtnSave.setLocation(250,450);
    jbtnClear.setLocation(350,450);
    jbtnExit.setLocation(450,450);
    txfCustomer_Id.setRequestFocusEnabled(true);
    txfCustomer_Id.requestFocus();
    jbtnSave.addActionListener(this);
    jbtnClear.addActionListener(this);
    jbtnExit.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
    if(ae.getSource().equals(jbtnSave))
    //' &txfAddress1& ',' &txfAddress2& ',' &txfQuantity& ',
    //' &txfUnit_Price& ',' &txfInterest_Level& ',' &txfContact_No& ',
    //' &txfMobile_No& ',' &txfEmail& ',' &txfEmployee_Id& ',' &txfCampaign_Date& ',
    //' &txfNext_Appointment& ',' &txfCampaign_Id& ',' &txfTeam_Id& ',' &txfOrder_No& ',' &txfResult& '
    try
    Class.forName("jdbc.odbc.JdbcOdbcDriver");
    Connection connCampaign=DriverManager.getConnection("jdbc:odbc:CRMSource");
    Statement stmtCampaign=connCampaign.createStatement();
    /* stmt.executeUpdate("insert into Campaign values('" &jtxfCustomer_ID& "',&jtxfCustomer_Name&,
    ' &jtxfCustomer_ID& ',' &txfCompany_Name& ',' &txfDesignation& ',' &txfAddress1& ',' &txfAddress2& ',
    ' &txfQuantity& ',' &txfUnit_Price& ',' &txfInterest_Level& ',' &txfContact_No& ',
    ' &txfMobile_No& ',' &txfEmail& ',' &txfEmployee_Id& ',' &txfCampaign_Date& ',
    ' &txfNext_Appointment& ',' &txfCampaign_Id& ',' &txfTeam_Id& ',' &txfOrder_No& ',' &txfResult& ')");*/
    JOptionPane.showMessageDialog(this,"Statement was saved");
    catch(Exception ex)
    ex.printStackTrace();
    I got "unclosed character literal" error when i tried to execute the above java source file .
    help me to get the required result.

  • INSERT command in CLM1 tcode

    Hi,
    I have done BDC recording for CLM1 tcode. Later In costs Tab of CLM1 Tcode, There is a ALV.As ALV can not be Inserted or Updated with BDC recording. I have directly moved into table CKIS. I am gettingDUMP at INSERT command,When ever I run the Tcode.
    Insert ckis from table lit_ckis.
    Regards,
    Deepthi.

    Hi,
    I have tried to Use UPDATE and MODIFY then the values are not getting updated in cost tab of ALV.My code is below.
        SELECT SINGLE * INTO lwa_qmel
                        FROM qmel
                        WHERE qmnum = w_src-qmnum.
    Update the ALV in Costs TAB.
        LOOP AT i_src_temp INTO w_src_temp WHERE indicator = w_src-indicator.
          MOVE w_src-qmnum TO w_src_temp-qmnum.
          lwa_ckis-wertn = w_src_temp-menge * w_src_temp-gpreis.
          lwa_qmel-estimated_costs = lwa_qmel-estimated_costs + lwa_ckis-wertn.
    Conversion Exit for Cost Element
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = w_src_temp-kstar
            IMPORTING
              output = lwa_ckis-kstar.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = c_lednr
            IMPORTING
              output = lwa_ckis-lednr.
    Increment the POSNR value,so that to Update in the Next Line of ALV of Cost Tab
          lv_itemno = lv_itemno + 1.
    Alpha routine also exists for lednr.
          MOVE :
                  w_src_temp-typps         TO lwa_ckis-typps,
                  w_src_temp-menge         TO lwa_ckis-menge,
                  w_src_temp-meins         TO lwa_ckis-meeht,
                  w_src_temp-gpreis        TO lwa_ckis-gpreis,
                  lwa_qmel-kalnr           TO lwa_ckis-kalnr,
                  lv_itemno                TO lwa_ckis-posnr,
                  lc_x                     TO lwa_ckis-kstar_manual,
                  lc_1                     TO lwa_ckis-peinh,
                  lc_x                     TO lwa_ckis-price_manual,
                  lwa_ckis-wertn           TO lwa_ckis-wrtfw_kpf,
                  lwa_ckis-wertn           TO lwa_ckis-wrtfw_pos,
                  lc_usd                   TO lwa_ckis-fwaer_kpf,
                  lc_usd                   TO lwa_ckis-fwaer,
                  sy-datum                 TO lwa_ckis-steas,
                  w_src_temp-gpreis        TO lwa_ckis-opreis,
                  w_src_temp-gpreis        TO lwa_ckis-tpreis,
                  lc_1                     TO lwa_ckis-peinh_2,
                  lc_1                     TO lwa_ckis-peinh_3,
                  lv_itemno                TO lwa_ckis-component_id,
                  gc_bzobj                 TO lwa_ckis-bzobj,
                  gc_kalka                 TO lwa_ckis-kalka,
                  gc_tvers                 TO lwa_ckis-tvers,
                  gc_kokrs                 TO lwa_ckis-kokrs_hrk.
          APPEND  lwa_ckis TO lit_ckis.
          CLEAR lwa_ckis.
        ENDLOOP.
    Check if CSIK is locked if not then update else wait.
        lv_tab = lc_ckis.
        lv_locked = lc_4.
        WHILE lv_locked <> 0.
          CLEAR lv_locked.
          PERFORM f8000_check_lock USING    lv_tab
                                   CHANGING lv_locked.
        ENDWHILE.
         INSERT ckis FROM TABLE lit_ckis.
        MODIFY ckis FROM TABLE lit_ckis.
    Regards,
    Deepthi.

  • Insert Command In eCATT

    Hi,
      I tried to use the insert command in eCATT. The script passed but the values are not shown in the database table. Could you please help me.
    Thanks and Regards,

    Hello Jubish,
    The insert command inserts a row into table parameter. This table can also be a field of complex structure.
    Along with the row index, work area needs to be specified then only the value will be passed. And if the structure of the work area differs from the table then only same name fields will be inserted.
    If only row index is specified without any work area, blank row will be inserted into the table.
    SAP Help link for Insert command is as follows -
    http://help.sap.com/saphelp_erp2004/helpdata/en/db/f4383fe58d5900e10000000a114084/content.htm
    PS If answer solves your query, do reward points to everyone responding.
    Regards

  • Insert command in Sql

    Dear Team ,
    I need to insert a values into an table starts with 1 and ends with 1000 .
    Insert the values manually will be tough one .
    May I want to insert the values Manually ?
    or Any other insert command to do this above task .
    Kindly help me to solve this Issues .
    Regards ,
    Augustine

    Augustine Vinish wrote:
    My table Structure
    SQL> desc office;
    Name Null? Type
    NAME VARCHAR2(20)
    AGE NUMBER
    DEPT VARCHAR2(19)
    EMPID                                             VARCHAR2(20)
    SALARY NUMBER
    The table contains already values ,I altered this table for adding one more column (EMPID).
    Now I am a in need to insert values for the column EMPIDThen just do this
    update office set empid = rownumor create a sequence and use it
    create sequence seqEmpid
    update office set empid = seqEmpid.nextval
    /

  • Insert command do not work on MII

    I have the following insert command in a Fixed SQL action:.
    insert into SOLICITACAO
        (USUARIO_CRIADOR, LOCAL_ORIGEM, CAPACIDADE, SITUACAO, DATA_CRIACAO, TIPO, USUARIO_SOLICITANTE)
    values
        (1, 1, 25, 'A', TO_DATE('10-10-2009 12:33:33', 'DD-MM-YYYY HH24:MI:SS'), 'M', 1)
      This insert command works with no problem when I execute it using some software to connect to my oracle database.
      Inside MII I have an error:
    com.sap.xmii.Illuminator.logging.LHException: SQL error has occurred on query ORA-00900: invalid SQL statement
      What could be wrong here?
    Nuno Cunha

    Hi,
      Oooops! Thank you very much.
    Nuno Cunha

  • The data source control failed to execute the insert command

    Hi,
      We have installed SharePoint 2010 on Windows Server 2008 Enterprise Edition. We've started using the "Employee Training Scheduling and Materials" template that is available at
    http://www.microsoft.com/government/en-us/campaigns/Pages/SharePoint-Templates.aspx. Till last friday (17th Oct,2013) everything was working fine, but after that we are getting an error "The data source failed to execute the insert command"
    when I click on the "Save" button available on the Registrations.aspx. Could any one help me resolve this issue?
    Kinldy revert if you need more details.
    Though I see many posts regarding this, most of them are associated with Windows Server 2008 R2. So, most of the hot fixes mentioned there could not help me.
    Your help me is greatly appreciated. Thanks for taking time to go through this post.
    Thanks and Regards
    Praveen.
    Thanks and Regards Praveen.

    I have the exact same problem. I updated the 2007 Employee training template to the 2010 version and then 2 months ago, presumably when our Sharepoint had the July 10th patch 14.0.7102.5004 applied, it all broke. An attempt to register for a class always
    comes back with "Failure to execute insert command".
    I tried changing the DateSourceMode from "ListItem" to "List"  that gets rid of the error but does NOT update the registrations list.
    Anyone have any success fixing this?

  • Failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    the error occurs when someone tries to add an event in the calendar & this issues seems to be across the entire sharepoint 2010 foundation farm. How can i resolve this without rebuilding the farm?

    Hi, We are having the same issue. Did anyone get a solution for this? I tried following solution. 
    open
    the page with SPD and update this value.
    OLD: <SharePoint:SPDataSource
    runat="server" DataSourceMode="List"
    NEW: <SharePoint:SPDataSource
    runat="server" DataSourceMode="ListItem"
    That gives me "Access Denied" error.
    User has contribute permission
    for the list. 
    Any solution???

  • How to overcome Dump during Insert Command

    Hi Abappers,
    When I am trying to upload the text file into the Database,
    I am using Insert command using internal table.
    When the record exist, it gives dump saying duplicate records.
    How to convert that dump into the error message?
    Please Reply.
    Regards,
    Rahul

    Rahul,
    Insert FROM TABLE itab [ACCEPTING DUPLICATE KEYS]
    Effect
    If you specify an internal table itab, several rows are created from its content for insertion in the database table. A row for insertion into the table is taken from each row of the internal table according to the same rules as for a single work area Einfügenwa. The line type of the internal table has to meet the prerequisites for use in Open-SQL statements.
    If a row witht he same primary key or a same unique secondary index does not already exist in the database table for any of the rows to be inserted, all rows are inserted and sy-subrc is set to 0. If the internal table is empty, sy-subrc is also set to 0. The system field sy-dbcnt is always set to the number of rows that were actually inserted.
    If a row with the same primary key or a same unique secondary index already exists in the database table for one or more of the rows to be inserted, these rows cannot be inserted. In this situation, there are three possibilities:
    Use of ACCEPTING DUPLICATE KEYS
    If the addition ACCEPTING DUPLICATE KEYS is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt is set to the number of lines that are inserted.
    Handling an exception
    If the addition ACCEPTING DUPLICATE KEYS is not specified, a treatable exception occurs CX_SY_OPEN_SQL_DB (it always occurs since Release 6.10). Rows are inserted until the exception occurs. The number of rows that are inserted is not defined. The system fields sy-subrc and sy-dbcnt retain their previous value.
    Runtime error
    If the addition ACCEPTING DUPLICATE KEYS is not specified and if the exception is not handled, then a runtime error occurs (it always occurs prior to Release 6.10). This executes a database rollback that reverses all changes to the current database LUW. This applies in particular to rows that were inserted before a double entry occurred.
    i would also suggest you to see SAP help by pressing F1 because some time may we miss but SAP never.
    Amit.

  • Data source control failed to execute the insert command

    I have a sign up training calendar that runs on sharepoint 2010, over the weekend i went to install the latest cumulative update http://support.microsoft.com/kb/2817552 and it seems to have broken the signup process. Whenever some goes to sign up for an
    event they see the following error what can i do to fix this?
    Error
    The data source control failed to execute the insert command. d8b915be-5355-4d63-97bb-c9cf3aacad75
    Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: d8b915be-5355-4d63-97bb-c9cf3aacad75
    Date and Time: 7/31/2013 9:51:25 PM

    0
    Vote
    Thanks!!!
    It worked for me too

  • Setting priority of order of DELETE -vs- INSERT commands in Oracle database

    Hi,
    I have an .NET application which has a DELETE command (e.g. Delele from MyTable where id = 1) immediately followed by an INSERT command (e.g. INSERT INTO MyTable (id, field1, field2) values (1, 'x', 'y').
    We are not using transactions, so the commands are independent.
    MyTable has a unique constraint on the id column.
    On occasion, I am getting an error "ORA-00001 : unique constraint ... violated."
    I speculate that the INSERT command is being processed by the database before the DELETE command.
    Would you know if the priority of INSERT commands can be set higher to DELETE commands? How could I set this on my database (for testing purposes)?
    Thanks!

    One piece of the puzzle that I nelgected to mention...
    This DELETE/INSERT scenario is happening in an ASP.NET application going through Oracle's .NET driver (ODP.NET).
    The DELETE and INSERT are run with the autocommit feature of ODP.NET (I assume this translates into a separate transaction for each of these two statements).
    We have the "connection pooling" enabled (for the ODP.NET). Maybe because of the connection pooling, might ODP.NET be reversing the order of the DELETE and UPDATE commands?
    A problem I have is that I cannot see this problem occur on my server: the problem only occurs on the customer's server. He has reported several occurances of the problem.
    Do you think the Oracle session tracing will be of help if I cannot reproduce the problem (on my machine)?
    Thanks for you help so far!
    (clarification: The DELETE is run and "auto-committed", the immediately, the INSERT is run and "auto-committed")
    Edited by: user8267059 on Oct 15, 2008 6:00 AM

  • WordPress MySQL Error Code: 1142. INSERT command denied to user

    Problem: I have been working on a WP Multi-Site for two months. Working away last Sunday and it stopped saving changes to my WP Post and Pages.
    I cannot rename folders at the root of the site i.e. rename Plugins folder to Plugins-hidden to reset the plugins as a troubleshooting effort. When I try to rename the folder I (as administrator) gets
    FTP 550 Access Denied message. When I connect to the MySQL DB using MySQL Workbench it does not let me perform any INSERT type function; only SELECT. When I do it gives me the following error:
    Error Code: 1142. INSERT command denied to user 'b37d600426923a'@'168.62.52.141' for table
    Basically the admin account has lost all of its admin access to the DB and host files. This is a STOPWORK scenario and I need help from an expert.
    Thanks in advance for any and all contributions to this issue.

    Found the answer... email that went to junk mail. Hope this helps others!
    Hello Subscription User,
     Thanks for choosing ClearDB for your database needs. We appreciate your business and 
     your interest in our services. Our commitment to all of our customers is that we 
     provide a high quality of service on all of our database systems. Part of that 
     commitment includes the enforcement of database size quotas in order to ensure 
     the highest quality of service for our customers.
     As such, we're sending you this automated message regarding one of your databases:
     Database: wp____
     Tier/Plan: Mercury
     Tier size quota: 20 MB
     This database has either reached or has exceeded its maximum allowed size for the 
     'Mercury' plan/tier that it currently belongs to. As such, our systems were forced to 
     place a read-only lock on it. We kindly encourage you to upgrade your database 
     to a larger tier/plan so that we can restore write privileges and enable complete 
     access to it from your account.
     If you feel that you have received this notification in error, please feel free 
     to contact us by replying to this email along with information that you feel may 
     assist us in assessing the situation with your database.
     Thanks again for choosing ClearDB,
     The ClearDB Team

Maybe you are looking for