Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6201667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:35:47+00:00 2026-05-24T04:35:47+00:00

Q: I face the following problem two weeks ago , and i don’t know

  • 0

Q:

I face the following problem two weeks ago , and i don’t know how to handle it taking the performance issues , the data integrity in consideration.

What I do is:

I wanna to migrate the data from the XML file to its similar tables in my database.

for example :

  • i have two nodes (XML file):

    courses , teachers

  • Two tables (database)

    courses , teachers.

I allow the user to upload the XML file to a folder on my server and i begin to read the XML file and insert the data into my database .

The problem is:

if some failure happens during the insertion operation , i wanna to delete all the inserted records in all tables.(or roll back).

I begin to think about transaction , the insertion of each entity will be performed through transaction but i face two problems:

  1. Should i put all insertions of all entities in one transaction or
    one entity by one in transaction?(all entities data must be all inserted or no insertion at all )for each uploader.

  2. When i have huge number of records say(1500 record).the following
    exception appear:

    This IfxTransaction has completed; it is no longer usable,no
    one fixes it.

  3. My team leader told me not to use the transaction , because it will
    lock the tables and many users use those tables. he wanna some other
    mechanism .

please i wanna a solution to my problem(detailed explanation), How to handle this case and maintain the performance issues and the data integrity and consistency .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:35:48+00:00Added an answer on May 24, 2026 at 4:35 am

    I would suggest using SqlBulkCopy. You can google, or read these 2 articles:

    1. http://blogs.msdn.com/b/nikhilsi/archive/2008/06/11/bulk-insert-into-sql-from-c-app.aspx
    2. http://www.dotnetcurry.com/ShowArticle.aspx?ID=323
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I face following problem with three20 photobrowser app : 1: Some time images are
If .emacs contains the following two lines (set-face-foreground 'modeline #000000) (set-face-background 'modeline #00FFFF) then
I face a problem when I try to get value from primary table in
As the question says, what are some common/major issues that C++ programmers face when
I have faced aweird problem with the following code, the code below suppose to
which project management solutions do you know, which fullfill the following contraints: Report customer
I get an orientation problem while using the following to code to display a
Let's face it. The Singleton Pattern is highly controversial topic with hordes programmers on
Let's face it: writing proper, standards compliant HTML is quite difficult to do. Writing
I've been reading about the @font-face rule and trying to work out if it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.