-- 作者:cat88hzh
-- 发布时间:2013/5/10 13:31:00
-- [求助]关于查看大量数据超时问题
当我需要查看两个有关联关系的表,而这两个表都是很大的表有70万条数据,我该如何导入数据才能查看呢?我单独全部倒入,再到程序里面做关联根本导不进来,会报超时。甚至我按百分比导入都会超时。 如果在数据库中我就写一段 select cab.drum_no,cab_type,AAvg1550,Amax1550,Att_1550 from cab20130601 cab,
fib20130101 fib where cab.cab_id=fib.cab_id and cab.order_no like
\'%2120110%\'
这样的代码就很快查询出来,可是在foxtable中我要怎么做呢?
|
-- 作者:cat88hzh
-- 发布时间:2013/5/10 15:14:00
--
以下是引用Bin在2013-5-10 14:13:00的发言:这些东西其实帮助里面都有,帮助一定不要跳过,急于求成的话只会事倍功半.
是的帮助里面的动态加载方法,我用了也会显示超时
System.Data.OleDb.OleDbException: 超时已过期 [DBNETLIB][ConnectionRead (recv()).]一般性网络错误。请检查网络文档。 在 System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) 在 System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) 在 System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) 在 System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) 在 System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) 在 System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) 在 System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) 在 Foxtable.O101lOO1.O1l00l0(String Ol1lOOlO) 在 Foxtable.O101lOO1..ctor(Table O1011, String O1O11l01) 在 Foxtable.Table.OpenLoadTree(String O01Ol1O1, Int32 Oll1, Int32 O10110Ol, Boolean O1Ol1ll1O00l1) 在 Foxtable.frmSetLoadTree.OO01l10O1lO11(Object O11l10, EventArgs O) 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ButtonBase.WndProc(Message& m) 在 System.Windows.Forms.Button.WndProc(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|