一.FireDAC调用DataSnap远程方法查询数据示例 1.服务端使用FDQUERY查询数据并返回TDATASET: function TServerMethods1.GetData(var sqlstr: string): TDataSet; var qry:TFDQurey; begin qry := TFDQuery.Create(nil); try qry.Connection := TServerContainer1.FDConnection1; qry.Open(sql); Re
FireDac 的一些应用提示: 1. 客户端 dataset 能用 TFDQuery 连接 dataset provider 获取数据 ? Can I use TFDQuery and connect it to a dataset provider and retrieve the data in an Embarcadero client dataset? 参考 http://docwiki.embarcadero.com/RADStudio/Tokyo/en/TFDQuery,_TFD
FDMEMTABLE将修改后的数据序列为JSON procedure TForm1.Button3Click(Sender: TObject); var memtable: TFDMemTable; ms: TStringStream; begin memtable := FDMemTable2; memtable.CachedUpdates := True; if memtable.State in dsEditModes then memtable.Post; if memtable.Cha
链接里默认的--------------------------- Error --------------------------- I/O error for file "C:\ProgramData\Embarcadero\InterBase\gds_db\examples\database\employee.gdb" Error while trying to open file 系统找不到指定的路径. . --------------------------- OK ----
firedac调用ORACLE的存储过程 EMB官方原文地址:http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Using_Oracle_with_FireDAC 笔者下面做的是中文翻译: ORALCE的存储过程,相比MSSQL,多了一个PACKAGE(包). 因此FIREDAC调用也稍有点不同. ORACLE创建存储过程的样例脚本如下: CREATE OR REPLACE PACKAGE FDQA_TestPack AS TYPE TVC2Tb
unit FMX.DataSetToJSON; interface uses FireDAC.Comp.Client,Data.DB; function DataSetToJSON(DataSet:TDataSet):String; function JSONToDataSet(JSONTEXT:String):TFDMemTable; implementation uses System.Rtti,System.JSON; function DataSetToJSON(DataSet:TDat