Can someone tell me how to massage data in SQL Server in a transaction? I have a program to import data from several database tables from a file. I am using SQL Server and Entity Framework to import these records into a transaction database. Please tell me is this a good way to follow?
I am using Entity Framework for this. But when I import 1000 records, I find that it causes locks on SQL Server.
The file contains many columns. Several columns refer to the parent table, and the remaining columns refer to child tables. So how can we match them using SqlBulkCopy?
There are 10 child tables. I need to first insert data from a file into child tables. If inserting records causes an error in the child table, for what reason will I have to roll back this transaction and continue with another record from the file
source
share