Inserting records from Infopath forms library to a SQL table

Hi,
I have a requirement where i need to populate records from a Infopath forms library to a SQL table in a database. We have written a console app to achive the same. However we are encountering performance issues when inserting records in the database. The
way we retreive information from Infopath forms library is through a CAML query and then insert record by record in database. Is their a better and faster way to acheive this?
Can someone pls help? 
thanks,
Anand
Thanks and Regards, Anand R. Deshpande

Hello Anand,
Could you share you console application code? Also tell us when you face performance issue. I mean is there any problem in accessing infopath form or you are facing problem with only console application.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • Inserting records from a txt file to a database table

    I would like to know how to insert records from a file (txt) to a database table through a java application?

    [BufferedReader |http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html] and PreparedStatement
    IO and JDBC

  • Insert records from user form to multiple tables in same database

    Hi Experts, I need your help. I have a form that has multiple text fields that I need to insert the records to their each respective table. For example: The first name field needs to go the the name table, address goes to a seperate table, phone goes to a seperate table and so on.
    Is this possible to do?
    Thanks Much
    Sham

    The same for ASP, JSP or PHP.  Just the code syntax is different for each language.  Are you using MySQL, Access or ?
    In any case, create the three recordsets on the database and use insert queries.  If you don't know what one is, google insert query and you will see the syntax. 
    Here is a good example out on the web
    http://www.stardeveloper.com/articles/display.html?article=2000032601&page=1
    In your case you would get the values for the inserts from the form data and only need to open the database connection once.
    Good luck.
    Walt
    B & B Photography

  • Delete record from the form and from the database

    hi,
    i want delete record from the form and the database ,but the record is only delete from the from !!!
    this is my code :
    if //condition then
    delete_record;
    commit;
    end if ;
    Any solutions ??
    thnx

    You have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
    When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
    As oracle is not able to insert your commit fails and stops your deletion of record from table

  • Searching items in InfoPath form library

    Hi,
    I have an Infopath form library, in which I have done the property promotion and exposed some of the columns.
    I am trying for search functionality. How to search items in infopath form library? Is there any OOB webparts which can be used to display search criteria and the results. I do not have access to Central Admin, and hence cannot create Managed metadata properties,
    but the columns are exposed in InfoPath form.
    The infopath form has repeating table as well.
    How to achieve the search in InfoPath form library?
    Thanks

    Hi Venkatzeus,
    Have you tried using contextual search for this InfoPath form library?
    Please go to site setting page->Site collection ->Site Collection Administration section->Search Settings page, select the value "Show and default to contextual scope" for option "Site Collection Search Dropdown Mode",
    then please go to the InfoPath form library to test the search using "This list:YourFormlibraryName" dropdown (and wait a full crawl if needed).
    See more information from below.
    https://technet.microsoft.com/en-us/library/gg576955%28v=office.14%29.aspx?f=255&MSPPError=-2147217396#BKMKSiteCollectionSearchSettings
    http://www.sharepointanalysthq.com/2010/06/sharepoint-2010-site-search-drop-down-mode/
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Daniel Yang
    TechNet Community Support

  • Inserting records from internal table to database table

    Hi all,
    i want to insert records from internal table to zDatabase table, can u plz guide me which statement is better in performance to insert the records.
    1) insert one by one record from internal table
    loop at itab.
    insert ztable from wa.
    endloop.
    2) insert total records at a time
    INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.
    or let me know if any other statement is there with high performance.
    i internal table contains nearly 40000 records.
    thanks.

    Hi,
    Insert the entire table at atime rather than a record so as to increase the performance.
    you can use INSERT <dbtabname> CLIENT SPECIFIED FROM TABLE itab.
    or
    MODIFY ZPRODUCT FROM TABLE GI_AFPO.
    Regards,
    Raj.

  • Insert records from report program into R3 table

    Hi
    I wanted to insert records from report program into R3 table.
    here is my code
    data : itab type standard table of zemp initial size 10 with header line.
    itab-EMPNO = '012'.
    itab-ENAME = 'XXXX'.
    itab-JOB = 'XXXX'.
    APPEND itab.
    insert ztable from table itab.
    but i am getting the following error
    the type of the data base table and work area/internal table "ITAB" are no unicode-converible.
    how can I insert records from report program into R3 table
    should I have to write move corresponding
    pls guide
    thanks
    manian

    Hi,
    itab-EMPNO = '012'.
    itab-ENAME = 'XXXX'.
    itab-JOB = 'XXXX'.
    APPEND itab.
    insert ztable from table itab.
    Do one thing
    Data : itab type table of ztable with header line.
    itab-EMPNO = '012'.
    itab-ENAME = 'XXXX'.
    itab-JOB = 'XXXX'.
    APPEND itab.
    insert ztable from table itab.
    error will resolve, then try to make structure similar to ZTABLE

  • Retrive last inserted  record  from database table

    Hi,
    some body inserting a record into table 'A' through some procedure/java program.i want to retrive the last inserted record from database table.records are not stored in order.Can any body help me.

    In general, unless you are storing a timestamp as part of the row or you have some sort of auditing in place, Oracle has no idea what the "first" or "last" record in a table is. Nor does it track when a row was inserted.
    - If you have the archived logs from the point in time when the row was inserted, you could use LogMiner to find the timestamp
    - If the insert happened recently (i.e. within hours), you may be able to use flashback query to get the value
    - If you're on 10g or later and the table was built with ROWDEPENDENCIES and the insert happened in the last few days and you can deal with a granularity of a few seconds and you don't need 100% accuracy, you could get the ORA_ROWSCN of the row and convert that to a timestamp.
    If this is something you contemplate needing, you need to store the data in the row or set up some sort of auditing.
    Justin

  • Updating multiple records from single form (ASP)

    I have a nested repeat region.
    I have created in the parent, a form with 3 fields and an update button.
    the child records all have multiple columns, 3 of which correspond to the parent.
    Athe parent is bound to the child records by the shipmentID
    I need to be able to update all child records from the form in the parent.
    The case is this.
    The child records are orders with shipdates and frequencies
    The parent contains a form with fields for shipdate and frequency
    The administrator needs to change the shipdate and/or frequency for all child records.
    (The child records are forms as well--but that's another issue that works fine)
    Shipment ID
    Date Field
    Freq Field
    UPDATE Button
    ShipmentID
    Record 1
    Data case1
    Date
    ShipmentID
    Record 2
    Data case 2
    Date
    I am doing this in classic asp with an SQL database.
    So how do I get the form to update all record
    [Subject title edited by moderator to make clear ASP involved]

    Hi,
    This is one of those questions that would require far more explanation that is reasonable to expect in a forum. You should do a little poking around in the nearest Barnes & Nobles. About a half hour in a chare with a good ASP book and vanilla latte should have you on the right track.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF

  • Insert record from one table to another with help of cursor

    Plz help!!!
    tables are - 1. country( country_id pk, country_name, region_id)
    2. a( country_id , country_name, region_id)
    table a data are
    1 a 1
    2 b 2
    3 c 3
    null d 4
    5 e 5
    6 f 6
    7 g 7
    insert record from table a to country table with help of cursor, insert all not null records.
    this procedure does not give correct result
    create or replace
    procedure amit as
    cursor c1 is select * from a;
    rw a%rowtype;
    begin
    open c1;
    fetch c1 into rw;
    while(c1%found)
    loop
    insert into countries values(rw.country_id,rw.country_name,rw.region_id);
    commit;
    fetch c1 into rw;
    if rw.country_id is null then
    fetch c1 into rw;
    end if;
    end loop;
    close c1;
    exception
    when others then
    dbms_output.put_line('exception name= '||rw.country_name);
    end;

    bluefrog wrote:
    You don't need cursor at all;
    create or replace procedure amit as
    begin
    insert into countries (Country_ID, Country_Name, Region_ID)
    (select a.Country_ID
    ,a.Country_Name
    ,a.Region_ID
    from a
    dbms_output.put_line('Rows inserted : ' || sql%rowcount);
    commit;
    end;
    Bluefrog you missed where clause. :)
       insert into countries (Country_ID, Country_Name, Region_ID)
       (select a.Country_ID
              ,a.Country_Name
              ,a.Region_ID
        from a
        where country_id is not null
    );

  • Inserting data from jsp form to multiple tables !

    Hi,
    I want to insert data from jsp form to two tables
    tables are
    (1) Form
    formId (PK)
    deptName
    (2) Data
    formId (FK)
    sNo
    description
    itemCode
    and the problem is that i want to save information form a jsp form to above two tables and i have only one form.
    so how do i insert data from a jsp form to multiple tables.

    You already know what your form in the jsp will be and what fields they are. You also already know what your database looks like. Using one form, you should be able to break the data down, and give it certain ids and/or names, so that when the form is submitted, you retrieve the correct values corresponding to a specific field and insert it.
    Unless there is something else I am not catching, this seems pretty straight forward.

  • Pass the data from a form in workflow to z table

    Hi all,
    How can I pass the data from a form in workflow to z table?

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • How to insert records from form to database?

    Hi all, i manage to make a connection from my form in adobe designer 7
    to my database Oracle 9i, now i want to add some buttons to the form
    and navigate, delete or add data from my form to the database, anyone
    has ideas to accomplish this?, i made a button and use this code
    "xfa.sourceSet.dataConnectionName.addNew();" without the "", but in the
    debugger this message appears:
    "TypeError: xfa.sourceSet.dataConnectionName has no properties
    1:XFA:form1[0].hola[0].Button1[0]:click"
    hope someone can help me with this problem, thanks in advance.
    regards
    Alex

    Alex alatorre do you speak spanish? can you help me?
    I have de same problem
    want to add data from my form to the database, i made a button and use this code xfa.sourceSet.prueba.addNew();
    but in the debugger this message appears:
    TypeError: xfa.sourceSet.prueba has no properties
    1:XFA:form1[0].#subform[0].Button1[0]:click
    My data connection is with microsoft access (local mode). When i configure the data connection i make the test and it says test succes, but...
    how do i know if the connection is really made when i open my form in acrobat? I only need to do new data conection in designer and create de button or a need to configure something else?
    When i create the button ... i only need copy in the javascript window...
    xfa.sourceSet.prueba.addNew();
    or do i need something else?
    I am a newbie with this... and sorry about my english.
    hope someone can help me with this problem, thanks in advance

  • Copying Records from one form to another in Forms 4.5 (**URGENT**)

    Hello Gurus,
    I have Form A through which I zoom to Form B (using open form). The user selects some records in form B. Those selected records should be displayed in form A after the user clicks a button say 'copy' in Form B.
    What is the best possible method to do this.
    Thanks in Advance.
    Regards
    Mallik

    You can accomplish this in two ways. To my knowledge you are not dealing with database tables in this issue. I guess. If you are then committing to the table and then requerying is the best thing to do.
    You can use either PL/SQL table types or Dynamic Record Groups to accomplish this task. PL/SQL tables are only supported from PL/SQL Ver 2.0 in forms. As long as you are using FORMS 5.0 or above then you can any of the above methods. My example here will tell you how to use PL/SQL table/record types...
    0. Create a PL/SQL Record type in a common library that you attach to form A and form B. Lets name it as FORMB_RECS.
    1. In Form B write WHEN-CHECKBOX-CHANGED trigger for the check box that you are using to select records. In that please copy the record primary key or all values to the FORMB_RECS declared in the common library.
    2. In the COPY button of Form B, copy the number of records in record group to global variable :GLOBAL.Copy_RecCnt and navigate to form A.
    3. In WHEN-FORM-NAVIGATE trigger of form A, check and see if :GLOBAL.Copy_RecCnt is > 0. If so then loop through the FORMB_RECS in common library and populte the desired block in form A.
    HTH,
    -- Raam.

  • CS4 Insert Record behavior when form spans pages

    Hello!!
    I have a form that spans pages, carrying the values via the session from page to page.
    The insert record behavior only picks up the values from the page in which I am inserting the behaviour (which I understand)
    Can I use the behavior "wizards" to create an insert that will use my session variables or do I have to do it through a script?
    I am relatively new to web coding (php) so any help would be appreciated.
    Thanks to all!! Have a great day...
    Rich

    I think I discovered the answer, but I would appreciate if someone can confirm if it's the right way or wrong way.
    I made hidden input fields, and made the default value the contents of the session variable for each field I brought over from previous pages.
    Seems to work, but is this a good way of doing it or a n00b way?
    Thanks,
    Rich

Maybe you are looking for

  • How do I fix a Bridge Output file error?

    I installed the Bridge Output file (Library>Application Support>Adobe>Bridge CC Extensions) but now when I open Bridge, I get an error message. Bridge opens and operates, but each time an message below comes up. Any ideas of how to fix it?

  • How can I get a real unified library?

    I've been searching support pages and discussions for an hour and I can't find instructions for this. I bought Aperture a couple of years ago and imported my then current iPhoto library. For a couple of months, I imported my photos into Aperture, the

  • Crystal report viewer Toolbar

    I am developing reports on Crystal Reports XI R2, VS.NET 2005 , SQL Server 2000, C#. When i run the report it generates the report fine but after a minute when I click on the toolbar either for print or export or drilldown or search or zoom or group

  • How can I cancel a product registration?

    Hi, I've got a shuffle and a couple of months ago I bought a nano. Now I would like to give the shuffle to my best friend. How can I cancel the registration for the shuffle so that my friend can register it? There is no guarantee left for the shuffle

  • Help: I have a globe image with a black background...how to...

    Hi, I have a simple Earth globe image with a black stars background. I'd like to cut out the black background and get this all white....basically id like just the globe visible with no background. http://www.ingerreime.no/inger/Images/globe.tiff I kn