首页> 外文期刊>Active Server Developer's Journal >Build your own SQL queries to maximize the efficiency of ExecuteNonQuery
【24h】

Build your own SQL queries to maximize the efficiency of ExecuteNonQuery

机译:建立自己的SQL查询以最大化ExecuteNonQuery的效率

获取原文
获取原文并翻译 | 示例
       

摘要

One of the most preferred methods for editing database data is via DataSet and DataAdapter objects. This duo makes it easy for you to implement editable forms (when you bind the Da t aSe t to controls like the DataGrid) and objects like the CommandBui lder allow you to automatically generate the necessary INSERT, UPDATE, and DELETE commands using the DataAdapter Command text. Of course, this isn't the most efficient way to update database data. Binding is costly and the SQL queries created by the CommandBui Ider contain a lot of unnecessary baggage. A better alternative for updating database records is the ExecuteNon-Query( ) function and, in this article, we'll show you an easy way to utilize it while maintaining a couple of the key benefits of the DataSet/DataAdapter duo.
机译:编辑数据库数据的最优选方法之一是通过DataSet和DataAdapter对象。通过使用此二重奏,您可以轻松实现可编辑的表单(将数据绑定到DataGrid之类的控件时),而CommandBui lder之类的对象使您可以使用DataAdapter Command自动生成必要的INSERT,UPDATE和DELETE命令文本。当然,这不是更新数据库数据的最有效方法。绑定的成本很高,而CommandBui Ider创建的SQL查询包含很多不必要的负担。更新数据库记录的更好的替代方法是ExecuteNon-Query()函数,在本文中,我们将向您展示一种简单的使用它的方法,同时又保持了DataSet / DataAdapter组合的两个关键优点。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号