I have to make a bulk upload, there is 30000 data in excel, it has to be uploaded within 15 minutes. Time matters how much time will it take to upload the data from Excel to the database.The program I have done is taking 30 minutes to upload.
Loading
Amit MohantyPosted Nov 23, 2023, 7:52 AM
Reading a large amount of data from an Excel file might require an optimized approach, so you can use EPPlus and batch processing to handle large Excel files. Check the below example, this may help you.
neeraj kumarPosted Nov 23, 2023, 5:02 AM
program is uploaded
please check it & help me its urgent
sample date column is not fixed , its changable
neeraj kumarPosted Nov 23, 2023, 4:52 AM
call this method to insert data-
Controller:- DataTable Status = await objService.BulkAttendanceUpload(newdt, Convert.ToInt64(Session["MappingID"]));
Services:-
Prasad RaveendranPosted Nov 23, 2023, 3:18 AM
Could you kindly share the program you've developed for uploading the CSV file? As recommended by Sam Hobbs, there are various methods available. If you have specific requirements and the preferred technology, we can explore how to accomplish this.
Sam HobbsPosted Nov 22, 2023, 6:39 PM
You can export the data as a CSV file and import using a SQL bulk insert. Or you could use OPENROWSET. See the following.
Use BULK INSERT or OPENROWSET(BULK...) to import data to SQL Server - SQL Server | Microsoft Learn
https://learn.microsoft.com/en-us/sql/relational-databases/import-export/import-bulk-data-by-using-bulk-insert-or-openrowset-bulk-sql-server?view=sql-server-ver16
Or you could use:
Import and Export Data with the SQL Server Import and Export Wizard - SQL Server Integration Services (SSIS) | Microsoft Learn
https://learn.microsoft.com/en-us/sql/integration-services/import-export-data/import-and-export-data-with-the-sql-server-import-and-export-wizard?view=sql-server-ver16