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:

  1. Finally, a temporary table was created with the same layout.

  2. The data of the floating table was imported from the first sheet

  3. filled out the column that is now zero with the correct value is.

  4. For the next 2 -> 3 bed sheets until all the sheets are imported.

  5. Check the temporary table for errors.

  6. 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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -