pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <small id='ypJE6'></small><noframes id='ypJE6'>

        <bdo id='ypJE6'></bdo><ul id='ypJE6'></ul>
      <tfoot id='ypJE6'></tfoot>
    1. <i id='ypJE6'><tr id='ypJE6'><dt id='ypJE6'><q id='ypJE6'><span id='ypJE6'><b id='ypJE6'><form id='ypJE6'><ins id='ypJE6'></ins><ul id='ypJE6'></ul><sub id='ypJE6'></sub></form><legend id='ypJE6'></legend><bdo id='ypJE6'><pre id='ypJE6'><center id='ypJE6'></center></pre></bdo></b><th id='ypJE6'></th></span></q></dt></tr></i><div class="zh7txbv" id='ypJE6'><tfoot id='ypJE6'></tfoot><dl id='ypJE6'><fieldset id='ypJE6'></fieldset></dl></div>
      1. <legend id='ypJE6'><style id='ypJE6'><dir id='ypJE6'><q id='ypJE6'></q></dir></style></legend>

      2. “對象已打開"使用 Delphi、SQL Server 和 ADO 時出

        quot;Object Was Openquot; error using Delphi, SQL Server and ADO(“對象已打開使用 Delphi、SQL Server 和 ADO 時出錯)

      3. <small id='vmSI6'></small><noframes id='vmSI6'>

          <tfoot id='vmSI6'></tfoot>
            <tbody id='vmSI6'></tbody>
          <legend id='vmSI6'><style id='vmSI6'><dir id='vmSI6'><q id='vmSI6'></q></dir></style></legend>

            <i id='vmSI6'><tr id='vmSI6'><dt id='vmSI6'><q id='vmSI6'><span id='vmSI6'><b id='vmSI6'><form id='vmSI6'><ins id='vmSI6'></ins><ul id='vmSI6'></ul><sub id='vmSI6'></sub></form><legend id='vmSI6'></legend><bdo id='vmSI6'><pre id='vmSI6'><center id='vmSI6'></center></pre></bdo></b><th id='vmSI6'></th></span></q></dt></tr></i><div class="hvvhpxl" id='vmSI6'><tfoot id='vmSI6'></tfoot><dl id='vmSI6'><fieldset id='vmSI6'></fieldset></dl></div>

                <bdo id='vmSI6'></bdo><ul id='vmSI6'></ul>
                • 本文介紹了“對象已打開"使用 Delphi、SQL Server 和 ADO 時出錯的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我在打開返回大型數據集(大約 700,000 行和 75 列)的 TADOQuery 時收到對象已打開"錯誤.

                  I am getting an "Object Was Open" error when opening a TADOQuery which returns a large dataset (around 700,000 rows and 75 columns).

                  我的 8 個字段是作為 varchar(200) 的派生字段,我發現如果我將它們更改為 varchar(95) 或更少,或 varchar(256) 或更多,則不會發生錯誤,即僅出現錯誤發生在 96-255 的范圍內.如果我從查詢中刪除這些列,或者選擇較少的行,也不會發生該錯誤.

                  8 of my fields are derived fields as varchar(200), and I have found that the error does not occur if I change them to varchar(95) or less, or varchar(256) or more, i.e. the error only occurs in the range 96-255. The error also does not occur if I remove these columns from my query, or if I select less rows.

                  谷歌搜索表明這是 SQLOLEDB 的一個已知錯誤,nvarchar 字段大于 127,但對我來說并非如此.我正在使用 SQLOLEDB,但我已嘗試改為使用 SQL Server Native Client,但仍然出現錯誤.

                  Googling has suggested that this is a known error with SQLOLEDB with nvarchar fields greater than 127, but that is not the case for me. I am using SQLOLEDB, but I have tried changing to SQL Server Native Client instead and the error still occurs.

                  任何人都可以對此有所了解,我很難過.我正在使用 Delphi 5 和 SQL Server 2008R2,查詢將數據選擇到臨時表中,然后從臨時表中選擇,如下所示(注意這是實際查詢的簡化版本,它使用 75 列和 8 個表):

                  Can anyone shed any light on this, I'm stumped. I am using Delphi 5 and SQL Server 2008R2, and the query selects data into a temp table and then selects from the temp table, like this (n.b. this is a simplified version of the actual query, which uses 75 columns and 8 tables):

                  select memno, surname, forename, 
                  'EE Conts in Year'= CAST('' as varchar(200)),
                  'ER Conts in Year'= CAST('' as varchar(200)),
                  'AVC Conts in Year'= CAST('' AS VARCHAR(200)),
                  'ERAVC Conts in Year'= CAST('' AS VARCHAR(200)),
                  'Total EE Conts'= CAST('' AS VARCHAR(200)),
                  'Total ER Conts'= CAST('' AS VARCHAR(200)),
                  'Total AVC Conts'= CAST('' AS VARCHAR(200)),
                  'Total ERAVC Conts'= CAST('' AS VARCHAR(200)),
                  into #tmptab
                  from members
                  
                  select * from #tmptab
                  order by surname
                  

                  謝謝

                  推薦答案

                  我收到了同樣的錯誤,對我來說,對我的 TAdoQuery 屬性進行了一些更改修復了它.我的情況與您的有些不同,因此在討論對我有用的更改之前,我將對其進行描述.

                  I was receiving the same error and, for me, some changes to my TAdoQuery properties fixed it. My situation is somewhat different than yours, so I'll describe it before getting to the changes that worked for me.

                  我有一張相當大的桌子;684,673 行,107 列,數據大小為 636240 KB.它有三組重復列,我將把它們標準化為三個新表.查詢?

                  I have a fairly large table; 684,673 rows, 107 columns and a data size of 636240 KB. It has three sets of repeating columns that I'm going to normalize out to three new tables. The query?

                  SELECT * FROM MyTable
                  

                  所以這只是一條直線穿過桌子,只有一個方向.處理不需要任何特定的順序,因此在主鍵之外添加索引將無濟于事.由于我沒有對此表進行任何更改,因此它是一個只讀提議.無需顯示任何內容.

                  So this is just a straight run through the table, one direction only. The processing has no need for any particular order, so adding indexes, beyond the primary key, won't help. Since I'm making no changes to this table, it's a read-only proposition. Nothing needs to be displayed.

                  當我只是嘗試將這個表的 TADOQuery.Active 屬性設置為 true 時,我在 Delphi IDE 中收到了錯誤.換句話說,只是嘗試在 IDE 中打開它會引發錯誤.在我可以在 IDE 中成功打開它之前,檢查我的任何代碼都是沒有意義的.

                  I was receiving the error in the Delphi IDE when I simply tried to set this table's TADOQuery.Active property to true. In other words, just trying to open it in the IDE threw the error. There's no point in examining any of my code before I can successfully open this in the IDE.

                  我對此表的 TADOQuery 進行了以下更改:

                  I made the following changes to this table's TADOQuery:

                  命令超時:600

                  CursorLocation:clUseServer

                  CursorLocation: clUseServer

                  光標類型:ctOpenForwardOnly

                  啟用BCD:

                  鎖定類型:ltReadOnly

                  錯誤不再發生,無論是在 IDE 中還是在我的處理代碼中.

                  The error no longer happens, either in the IDE or in my processing code.

                  可能只有其中一項更改是必要的.如果是這樣,我不知道是哪個,因為我沒有一次測試它們.我只是做了所有看起來像候選的更改,以便為查詢提供最大的成功機會.

                  It may be that only one of these changes was necessary. If so, I don't know which because I didn't test them one-at-a-time. I simply made all the changes that looked like candidates to give the query the best chance of success.

                  這篇關于“對象已打開"使用 Delphi、SQL Server 和 ADO 時出錯的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)

                  <tfoot id='NqEIu'></tfoot>

                  <small id='NqEIu'></small><noframes id='NqEIu'>

                      <bdo id='NqEIu'></bdo><ul id='NqEIu'></ul>
                        <tbody id='NqEIu'></tbody>

                      1. <legend id='NqEIu'><style id='NqEIu'><dir id='NqEIu'><q id='NqEIu'></q></dir></style></legend>

                          • <i id='NqEIu'><tr id='NqEIu'><dt id='NqEIu'><q id='NqEIu'><span id='NqEIu'><b id='NqEIu'><form id='NqEIu'><ins id='NqEIu'></ins><ul id='NqEIu'></ul><sub id='NqEIu'></sub></form><legend id='NqEIu'></legend><bdo id='NqEIu'><pre id='NqEIu'><center id='NqEIu'></center></pre></bdo></b><th id='NqEIu'></th></span></q></dt></tr></i><div class="jvttjfp" id='NqEIu'><tfoot id='NqEIu'></tfoot><dl id='NqEIu'><fieldset id='NqEIu'></fieldset></dl></div>
                            主站蜘蛛池模板: 净化车间_洁净厂房_净化公司_净化厂房_无尘室工程_洁净工程装修|改造|施工-深圳净化公司 | 储气罐,真空罐,缓冲罐,隔膜气压罐厂家批发价格,空压机储气罐规格型号-上海申容压力容器集团有限公司 | 北京银联移动POS机办理_收银POS机_智能pos机_刷卡机_收银系统_个人POS机-谷骐科技【官网】 | 北京办公室装修,办公室设计,写字楼装修-北京金视觉装饰工程公司 北京成考网-北京成人高考网 | 分子蒸馏设备(短程分子蒸馏装置)_上海达丰仪器| 广州冷却塔维修厂家_冷却塔修理_凉水塔风机电机填料抢修-广东康明节能空调有限公司 | 缓蚀除垢剂_循环水阻垢剂_反渗透锅炉阻垢剂_有机硫化物-郑州威大水处理材料有限公司 | 碳纤维复合材料制品生产定制工厂订制厂家-凯夫拉凯芙拉碳纤维手机壳套-碳纤维雪茄盒外壳套-深圳市润大世纪新材料科技有限公司 | 生鲜配送系统-蔬菜食材配送管理系统-连锁餐饮订货配送软件-挪挪生鲜供应链管理软件 | 杭州画室_十大画室_白墙画室_杭州美术培训_国美附中培训_附中考前培训_升学率高的画室_美术中考集训美术高考集训基地 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 塑料熔指仪-塑料熔融指数仪-熔体流动速率试验机-广东宏拓仪器科技有限公司 | 拉力机-拉力试验机-万能试验机-电子拉力机-拉伸试验机-剥离强度试验机-苏州皖仪实验仪器有限公司 | 大型多片锯,圆木多片锯,方木多片锯,板材多片锯-祥富机械有限公司 | 汝成内控-行政事业单位内部控制管理服务商 | 广州市哲铭油墨涂料有限公司,水性漆生产研发基地 | 热处理炉-退火炉-回火炉设备厂家-丹阳市电炉厂有限公司 | 主题班会网 - 安全教育主题班会,各类主题班会PPT模板 | 本安接线盒-本安电路用接线盒-本安分线盒-矿用电话接线盒-JHH生产厂家-宁波龙亿电子科技有限公司 | 小程序开发公司_APP开发多少钱_软件开发定制_微信小程序制作_客户销售管理软件-济南小溪畅流网络科技有限公司 | 鲁尔圆锥接头多功能测试仪-留置针测试仪-上海威夏环保科技有限公司 | 免费B2B信息推广发布平台 - 推发网 | 喷涂流水线,涂装流水线,喷漆流水线-山东天意设备科技有限公司 | 农业四情_农业气象站_田间小型气象站_智慧农业气象站-山东风途物联网 | 温州食堂承包 - 温州市尚膳餐饮管理有限公司 | 双段式高压鼓风机-雕刻机用真空泵-绍兴天晨机械有限公司 | 胜为光纤光缆_光纤跳线_单模尾纤_光纤收发器_ODF光纤配线架厂家直销_北京睿创胜为科技有限公司 - 北京睿创胜为科技有限公司 | 暴风影音 | 磁力轮,磁力联轴器,磁齿轮,钕铁硼磁铁-北京磁运达厂家 | 平面钻,法兰钻,三维钻-山东兴田阳光智能装备股份有限公司 | 实木家具_实木家具定制_全屋定制_美式家具_圣蒂斯堡官网 | 钢木实验台-全钢实验台-化验室通风柜-实验室装修厂家-杭州博扬实验设备 | 药品冷藏箱厂家_低温冰箱_洁净工作台-济南欧莱博电子商务有限公司官网 | 香蕉筛|直线|等厚|弧形|振动筛|香蕉筛厂家-洛阳隆中重工 | 上海璟文空运首页_一级航空货运代理公司_机场快递当日达 | 贵州科比特-防雷公司厂家提供贵州防雷工程,防雷检测,防雷接地,防雷设备价格,防雷产品报价服务-贵州防雷检测公司 | 机器视觉检测系统-视觉检测系统-机器视觉系统-ccd检测系统-视觉控制器-视控一体机 -海克易邦 | 锻造液压机,粉末冶金,拉伸,坩埚成型液压机定制生产厂家-山东威力重工官方网站 | 废气处理设备-工业除尘器-RTO-RCO-蓄热式焚烧炉厂家-江苏天达环保设备有限公司 | 辽宁资质代办_辽宁建筑资质办理_辽宁建筑资质延期升级_辽宁中杭资质代办 | 变色龙云 - 打包app_原生app_在线制作平台_短链接_ip查询 |