H
Hao
I am developing a data center server in C#. We alaready have a legacy system
that worked with great performance. The old system was unmanaged code in C++
and used ODBC driver SQLBindParameter to bind the data in the memory before
dumping to the SQL Server. In the current C# version, I used the SqlBulkCopy
to dump rows. However, I found that the performance still cannot compete
with the old way of ODBC binding. The only operation I need is to append
rows to tables.
I understand that MS recommens using the SqlClient, which is what I used
(SqlBulkCopy). But I am still not happy about its performance (comparing to
the old ODBC way).
Which driver/provider should I use to achieve the highest insert row(s) to
SQL Server perfomance?
- SQL Server .Net
- OLE DB .Net
- ODBC.Net
- Others?
Thanks.
Hao
that worked with great performance. The old system was unmanaged code in C++
and used ODBC driver SQLBindParameter to bind the data in the memory before
dumping to the SQL Server. In the current C# version, I used the SqlBulkCopy
to dump rows. However, I found that the performance still cannot compete
with the old way of ODBC binding. The only operation I need is to append
rows to tables.
I understand that MS recommens using the SqlClient, which is what I used
(SqlBulkCopy). But I am still not happy about its performance (comparing to
the old ODBC way).
Which driver/provider should I use to achieve the highest insert row(s) to
SQL Server perfomance?
- SQL Server .Net
- OLE DB .Net
- ODBC.Net
- Others?
Thanks.
Hao