佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1307|回复: 2

请问如何在ASP.NET 的web form 里 写 update data by batch 的 coding ?

[复制链接]
发表于 14-3-2013 12:25 PM | 显示全部楼层 |阅读模式
各位ASP.NEt的高手, 想请问如何在ASP.NET 的web form 里 写 update data by batch 的 coding,本人是初学者,用visual studio 2010 编辑
回复

使用道具 举报


ADVERTISEMENT

发表于 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 的命令去執行就好了..
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT


本周最热论坛帖子本周最热论坛帖子

ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 2-10-2025 09:12 AM , Processed in 0.530717 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表