查看: 1307|回复: 2
|
请问如何在ASP.NET 的web form 里 写 update data by batch 的 coding ?
[复制链接]
|
|
各位ASP.NEt的高手, 想请问如何在ASP.NET 的web form 里 写 update data by batch 的 coding,本人是初学者,用visual studio 2010 编辑
|
|
|
|
|
|
|
|
发表于 15-3-2013 11:28 PM
|
显示全部楼层
web form 里 写 update data by batch?
ADO .NET?
http://msdn.microsoft.com/en-us/library/aadf8fk2.aspx
Starting with ADO.NET 2.0, the DbDataAdapter exposes an UpdateBatchSize property. Setting the UpdateBatchSize to a positive integer value causes updates to the database to be sent as batches of the specified size. For example, setting the UpdateBatchSize to 10 will group 10 separate statements and submit them as single batch. Setting the UpdateBatchSize to 0 will cause the DataAdapter to use the largest batch size that the server can handle. Setting it to 1 disables batch updates, as rows are sent one at a time.
|
|
|
|
|
|
|
|
发表于 16-3-2013 05:30 PM
|
显示全部楼层
你用什麼DATABASE ?
用DATABASE 的命令去執行就好了.. |
|
|
|
|
|
|
| |
本周最热论坛帖子
|