XE10.2开发的查询数据的一个功能在WIN10正常win7报错

crazy_boom 2019-08-24 03:09:33
windows10 专业版
Sql2008R2
XE10.2
DbgridEh9.2
FireDAC或者 ADO 结果都一样
做了一个demo
FdQuery1+DataSetProvider1+ClientDataSet1+DataSource1+DbGridEh1 代码如下


procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
adoquery1.Close;
adoquery1.sql.text:='select bh,pm,gg,dj,sl from spb where sl>0' ;
clientdataset1.Close;
clientdataset1.Active:=True;
end;



编译出来的程序在win10系统里运行正常。复制到 win7系统里 链接数据库为win10电脑的数据库 执行 就报错我贴图如下



...全文
295 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
tanqth 2019-09-15
  • 打赏
  • 举报
回复
第一感觉,你那数据连接绕一大圈,神操作啊。WIN10正常,Win7错,估计是Win7环境缺少内容。
zqycn 2019-09-14
  • 打赏
  • 举报
回复
FdQuery1 你用 datasetprovider1 保存包? 用这个 FDMemTable
wjh0494 2019-09-14
  • 打赏
  • 举报
回复
FdQuery1 这个控件在哪里?adoquery1控件可以直接连到DateSource1控件上
crazy_boom 2019-09-13
  • 打赏
  • 举报
回复
引用 4 楼 wwx213 的回复:
客户端有安装数据库连接引擎吗?
安装什么数据库连接引擎? 只要不使用 cds win7下就可以 跟数据库引擎 应该没有关系吧
wwx213 2019-09-04
  • 打赏
  • 举报
回复
客户端有安装数据库连接引擎吗?
crazy_boom 2019-08-25
  • 打赏
  • 举报
回复
网上搜了 有的说 FdQuery1+DataSetProvider1 有BUG 莫非 就是这个BUG?
lao_yunger 2019-08-24
  • 打赏
  • 举报
回复
估计是没有把连接文件复制过去

ooolinux 2019-08-24
  • 打赏
  • 举报
回复
一个本地数据库,一个远程数据库?
Version 1.7 ----------- - ADD: Delphi/CBuilder 10.2 Tokyo now supported. - ADD: Delphi/CBuilder 10.1 Berlin now supported. - ADD: Delphi/CBuilder 10 Seattle now supported. - ADD: Delphi/CBuilder XE8 now supported. - ADD: Delphi/CBuilder XE7 now supported. - ADD: Delphi/CBuilder XE6 now supported. - ADD: Delphi/CBuilder XE5 now supported. - ADD: Delphi/CBuilder XE4 now supported. - ADD: Delphi/CBuilder XE3 now supported. - ADD: Delphi/CBuilder XE2 now supported. - ADD: Delphi/CBuilder XE now supported. - ADD: Delphi/CBuilder 2010 now supported. - ADD: Delphi/CBuilder 2009 now supported. - ADD: New demo project FlexCADImport. - FIX: The height of the TFlexRegularPolygon object incorrectly changes with its rotation. - FIX: Added division by zero protect in method TFlexControl.MovePathSegment. - FIX: The background beyond docuemnt wasn't filled when TFlexPanel.DocClipping=True. - FIX: In "Windows ClearType" font rendering mode (OS Windows mode) the "garbage" pixels can appear from the right and from the bottom sides of the painted rectangle of the TFlexText object. - FIX: The result rectangle incorrectly calculated in the TFlexText.GetRefreshRect method. - FIX: Added FPaintCache.rcPaint cleanup in the TFlexPanel.WMPaint method. Now it is possible to define is the drawing take place via WMPaint or via the PaintTo direct call (if rcPaint contain non-empty rectangle then WMPaint in progress). - FIX: The TFlexPanel.FPaintCache field moved in the protected class section. Added rcPaint field in FPaintCache that represents drawing rectangle. - ADD: In the text prcise mode (TFlexText.Precise=True) takes into account the rotation angle (TFlexText.Angle). - FIX: Removed FG_NEWTEXTROTATE directive (the TFlexText Precise mode should be used instead). - FIX: The TFlexRegularPolygon object clones incorrectly drawed in case when TFlexRegularPolygon have alternative brush (gradient, texture). - ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFle

2,497

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧