当前位置:编程学习 > C#/ASP.NET >>

更新数据,很慢!

我用VS2008开发数据库程序,使用tableAdapterManager分层更新,程序如下:
        private void documentBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.documentBindingSource.EndEdit();
            this.documentDetailsBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.tradeDocumentDataSet);

        }
执行后,需要一分钟,才能更新完成!太慢了,无法接受,不知和原因,请各位大侠帮帮忙! --------------------编程问答-------------------- up --------------------编程问答-------------------- 首先你要确定不是因为电脑配置低 --------------------编程问答-------------------- 配置不低,intel双核CPU --------------------编程问答-------------------- 想怎么更新数据? --------------------编程问答-------------------- 我以前用dephi开发,也是保存的文本数据,很快,但用VS2008怎么这么慢? --------------------编程问答-------------------- 我有两个数据表:document(父表)、documentDetails(子表);父表各字段用TextBox,combox数据控件,子表用DataGridView。更改DataGridView数据后更新,很快,但更改TextBox数据,然后更新数据,要一分钟,才能完成 --------------------编程问答-------------------- document(父表)有40多个字段,documentDetails(子表)有三十多个字段 --------------------编程问答-------------------- 是机器问题吗? --------------------编程问答-------------------- 数据处理太多? --------------------编程问答-------------------- 数据库的问题? --------------------编程问答-------------------- 机器应该没问题,数据库我用的是SQL server2005
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,