asp.net - Add text when using SQLBulkCopy to SQL Server from excel -
I have created a page where our partners can upload Axl files with data using SQLBulkCopy. The file has multiple sheets and I have to add the name of the letter to each row in a column in DB. The names of the sheets will not be able to change so hard that the name is okay. How can I solve it?
As the names of sheets do not change, I resolve it like this:
-
Finally, a temporary table was created with the same layout.
-
The data of the floating table was imported from the first sheet
-
filled out the column that is now zero with the correct value is.
-
For the next 2 -> 3 bed sheets until all the sheets are imported.
-
Check the temporary table for errors.
-
In the last table imported data from a temporary table, a line may be able to enter the location if the record already exists and if it has been updated, Then insert it.
Comments
Post a Comment