What would be the fastet and most efficient way to put a DataTable in .NET into a temporary SQL table on a remote SQL Server instace?
The datatables I am working on can contain up to 100,000 records, so I am concerned about performance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
100k records and you are comcerned about performance? Is the server a mobile phone? 1 million records is SMALL, 100 million starts to be “think or you have a problem” level, 100.00 records is something my tablet can efficiently deal with.
Just do it. SqlBulkCopy is the fastest way to move data from a .NET application down to a server and there is not a lot you CAN optimize anymore after using that. I regularly upload millions (tens of millions) of records doing that my grid does financial simulations.