I have a csv file i am submitting to database directly. I have tried many means but still not able to bulk copy into the database table.
I have suggestions from people. All suggestions are welcome.
I have a csv file i am submitting to database directly. I have tried many means but still not able to bulk copy into the database table.
I have suggestions from people. All suggestions are welcome.
Check out how to load a file using LOAD LOCAL INFILE command for MySql or for MSSQL the bulk insert method e.g.
BULK INSERT OrdersBulk
FROM 'c:\file.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
Which database are you using and, more importantly, what error are you getting?
Please direct replies here: http://www.daniweb.com/software-development/csharp/threads/426133/csv-file-to-database
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.