s.k.paul
s.k.paul

Reputation: 7291

Upload bulk data into SQL Server 2008 from .csv

I want to let my users to upload 3000-4000 rows of data into SQL Server 2008. I would like to use SqlBulkCopy. What is the best policy to do it?

Option A:

Option B:

I am new to ASP.Net.

Thank you.

Upvotes: 0

Views: 257

Answers (1)

Roy Ashbrook
Roy Ashbrook

Reputation: 854

It really depends on your scenario and what you mean by 'fastest'. To "load" the data server side (meaning, option A, upload, then import) will almost certainly be faster on the server side. But you could also 'process' the data client side and launch an async uploader if the user experience is more important.

I would go with Option A just to keep the 'upload' decoupled from the 'import' process.

Upvotes: 2

Related Questions