firedac

Delphi 10.2 fire dac

末鹿安然 提交于 2019-12-01 13:32:17
问题 I'm using delphi 10.2 and I'm trying to create my first application using multi device forms which is connected to MS SQL Server, but it shows this error... [DCC Fatal Error] ReadCounterForm.pas(14): F2613 Unit 'FireDAC.Phys.MSSQL' not found. 来源: https://stackoverflow.com/questions/52466705/delphi-10-2-fire-dac

Can't retrieve TStreams bigger than around 260.000 bytes from a Datasnap Server

妖精的绣舞 提交于 2019-11-30 05:59:44
问题 I have a Delphi 10.1 Berlin Datasnap Server, that can't return Data packets (through a TStream) bigger than around 260.000 bytes. I have programmed it following the \Object Pascal\DataSnap\FireDAC sample from Delphi, which also shows this problem. The problem can be seen just opening that sample, setting blank the IndexFieldName of the qOrders component on ServerMethodsUnit.pas, and changing its SQL property to : select * from Orders union select * from Orders Now the amount of data to be

how to store data on Firebase - Delphi XE 10

蹲街弑〆低调 提交于 2019-11-29 21:46:28
问题 What is the best way to connect to Google´s Firebase DBaaS from Embarcadero Delphi XE 10 ? I am not sure how to do it from AnyDAC. Or if exists a component out there (i coundnt find one on search) Any help? thank you 回答1: Firebase was acquired by Google and now makes available many tools and features (Cloud Messaging, Authentication, Realtime Database, Storage, Hosting etc...) If you are looking for a service that store and sync app data in realtime, the Realtime Database it's for you.

TFDQuery.Prepare cannot determine parameter types for INSERT query on MS SQL SERVER

不打扰是莪最后的温柔 提交于 2019-11-29 12:29:07
I open a TFDConnection for MS SQL Server with parameters: DriverID=MSSQL Password=test User_Name=test Server=VS2003-2008 Database=test Single Connection=TRUE Max Cursors=256 USE OLEDB=TRUE I then create a TFDQuery (run time), set its connection to the above, fill it with an parameterized INSERT query: insert into TT_ACT (TT_ACT_ID,TT_PARENT_ID,TT_FROMDATE,TT_TODATE,TT_NAME,TT_NR,TT_CODE,TT_GROUP...) values (:TT_ACT_ID,:TT_PARENT_ID,:TT_FROMDATE,:TT_TODATE,:TT_NAME,:TT_NR,:TT_CODE,:TT_GROUP,...) I then call Prepare for the query and get: [FireDAC][Phys][MSSQL]-335 Parameter [TT_ACT_ID] data

TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString

别等时光非礼了梦想. 提交于 2019-11-28 14:17:25
Using Delphi 10.2, SQLite and Teecharts. My SQLite database has two fields, created with: CREATE TABLE HistoryRuntime ('DayTime' DateTime, Device1 INTEGER DEFAULT (0)); I access the table using a TFDQuery called qryGrpahRuntime with the following SQL: SELECT DayTime AS TheDate, Sum(Device1) As DeviceTotal FROM HistoryRuntime WHERE (DayTime >= "2017-06-01") and (DayTime <= "2017-06-26") Group by Date(DayTime) Using the Field Editor in the Delphi IDE, I can add two persistent fields, getting TheDate as a TDateTimeField and DeviceTotal as a TLargeIntField . I run this query in a program to create

Can't retrieve TStreams bigger than around 260.000 bytes from a Datasnap Server

拟墨画扇 提交于 2019-11-28 12:26:27
I have a Delphi 10.1 Berlin Datasnap Server, that can't return Data packets (through a TStream) bigger than around 260.000 bytes. I have programmed it following the \Object Pascal\DataSnap\FireDAC sample from Delphi, which also shows this problem. The problem can be seen just opening that sample, setting blank the IndexFieldName of the qOrders component on ServerMethodsUnit.pas, and changing its SQL property to : select * from Orders union select * from Orders Now the amount of data to be send is beyond 260.000 bytes, which seems to be the point where you can't retrieve it from the client.

TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString

时光总嘲笑我的痴心妄想 提交于 2019-11-27 19:33:12
问题 Using Delphi 10.2, SQLite and Teecharts. My SQLite database has two fields, created with: CREATE TABLE HistoryRuntime ('DayTime' DateTime, Device1 INTEGER DEFAULT (0)); I access the table using a TFDQuery called qryGrpahRuntime with the following SQL: SELECT DayTime AS TheDate, Sum(Device1) As DeviceTotal FROM HistoryRuntime WHERE (DayTime >= "2017-06-01") and (DayTime <= "2017-06-26") Group by Date(DayTime) Using the Field Editor in the Delphi IDE, I can add two persistent fields, getting