I enter about 3 million records into the database using this solution . In the end, when the application inserted records for a while (my last run lasted about 4 hours), it gives a timeout with the following SqlException:
"SqlExcepetion: The timeout has expired. The timeout before the operation or server has expired does not respond."
What is the best way to handle this exception? Is there a way to prevent this, or should I catch an exception?
Thanks in advance!
, .
, TRYING Linq2SQL 3 - . ORM - , .
:
. , , - ETL , - 3- , , // , ;)
.
SQL script ( ) .
L2SQL , .
I think you should increase your team's CommandTimeout.
The solution can be found here.
Source: https://habr.com/ru/post/1743806/More articles:Using python decorator functions from another module - pythonProblem filling dictionary with Enumerable.Range () - c #EF4: How to create an unmapped property? - entity-frameworkReplace click () with document.ready () in jquery - jqueryGeneric XML Parser in Silverlight 3.0 - c #Code Verification Tool for Vault - code-reviewCustom Expression in Linq-to-Sql Designer - c #Simulating multiple inheritance in PHP - oopC #: intersection of a 2D tile - c #Working with multiple C # web configurations - c #All Articles