"Does anyone know any serious networking or server application developed in
You've got to be kidding. I suggest you look around. Many (many) of the
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
-----------------------------------------------------------------------------------------------------------------------
"Hao" <Hao@newsgroup.nospam> wrote in message
news:u08x0nqpHHA.2372@TK2MSFTNGP02.phx.gbl...
> Thanks for all the replies.
> So far, my plan is to develop some buffer to utilize the BatchSize. There
> are challenges to having buffer implemented on the server side because of
> the amount of the data (hundreds of thousands of columns).
>
> The product I am architecturing has a few large customers (data centers),
> such as eBay. The amount of data is huge. The old version of the software
> is working fine with archieving 3 to 4 GB data every day using ODBC and
> SQL binding, not to mention many other networking operations. The data
> block was constructed and bound before sending to the database. That is
> why the performance is fast.
>
> In .Net bcp operation, I can buffer data to 5 rows, but I cannot buffer
> data for many more rows (like 30) because that will blow the memory (with
> the huge amount of columns in hundreds of tables). Fortunately, my testing
> shows that if I buffer 5 rows before BCP, I can probably achieve the task
> by requiring a high end server machine. I was hoping to see if there is
> any other "low level" or more "native" way in .Net to append data to SQL
> Server.
>
> The perforamance of .Net really worries me a lot. We've spent a year in
> re-writing the server code in .Net but failed in overall performance. Now
> we are re-architecturing the entire system, and we are still not happy
> about the database perforamnce.
>
> Does anyone know any serious networking or server application developed in
> .Net by Microsoft or other venders?
>
> Thanks again.
> Hao
>
> "WenYuan Wang [MSFT]" <v-wywang@online.microsoft.com> wrote in message
> news:Z1hJJCBpHHA.1144@TK2MSFTNGHUB02.phx.gbl...
>> Hello Hao.
>>
>> I agree with William. SqlClient is the fastest way for SQL server
>> database
>> in ADO.net.
>>
>> Bye the way, if you using ADO.net 2.0, I would like to suggest you
>> specify
>> SqlBulkCopy.BatchSize. This property is new in the .NET Framework version
>> 2.0 and indicates the Number of rows in each batch. The default value is
>> zero, which means each WriteToServer operation is a single batch.
>>
>>
http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopy.b >> atchsize.aspx
>> [SqlBulkCopy.BatchSize Property ]
>>
>> Hope this helps. Please let me know if you face any further issue on
>> this.
>> I'm glad to assist you.
>>
>> Have a nice day,
>> Sincerely,
>> Wen Yuan
>> Microsoft Online Community Support
>> ==================================================
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>
>