Re: What is the faster way to insert/buck insert rows into SQL Server
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxx>
- Date: Thu, 31 May 2007 08:23:52 -0700
I would echo this thread to the microsoft.public.sqlserver.programming
group.
I would have said SqlClient would be the fastest--that or DBLib. ODBC, and
OLE DB are OSFA interfaces that have more layers to cross before sending or
receiving anything from SQL Server.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------
"Hao" <Hao@xxxxxxxxxxxxxxxx> wrote in message
news:e%23XXoy4oHHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Prev by Date: Re: Transaction problems
- Next by Date: Re: SQL Injections and parameterized SQL
- Previous by thread: What is the faster way to insert/buck insert rows into SQL Server
- Index(es):
Relevant Pages
|