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

  • SEARCH
  • Home
  • 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 7763029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:33:43+00:00 2026-06-01T14:33:43+00:00

I need to write an application that migrates data from a RavnDB to SQL.

  • 0

I need to write an application that migrates data from a RavnDB to SQL.
I am pulling the data out of the ravenDB while it is still receiving lots of writes. This means that i am usually pulling stale data.
On the SQL end i have a able with a primary key which is actually the GUID ID generated by the raven. Since i am pulling stale data – sometimes the same entities return. That’s fine, however since i am working over EF when attempting to savechanges i get some DbUpdateException.
So I was wondering if there is a way to tell DbContext to ignore DbUpdateException and continue inserting ?

Any ideas or comments would be very welcome,
Thanks

  • 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-06-01T14:33:44+00:00Added an answer on June 1, 2026 at 2:33 pm

    First i must say there is something fishy in your solution(ignore errors is bad practice in general) – maybe you should consider redesigning your solution.
    Anyway if you do need to use Entity Framework there is an option to set custom stored procedure for your CRUD actions read about it in this article
    you can create SP for the insert:

     INSERT INTO tragetTable
     SELECT @id,@val1,@Val2
     WHERE @Id NOT IN(select id from tragetTable)
    

    this may do the trick
    good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a Delphi application that pulls entries up from various tables
I need to write an application that fetches element name value (time-series data) pair
I need to write an application that can read email and attachments from a
I need to write an application that sends data to the Google App Engine
I am writing an application that fetches data from MS AX Dynamics once-in-a-very-long-while The
I want to write an application that removes data from a hard drive. Are
I want to write an Android application that can display some data received(polled) from
I need to write a .NET application that listens to a SMS message ,
I need to write a component for an application that interacts tightly with a
I need to write a MultiThreaded Java Application that will be used to load

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.