Home > Back-end > Consult the android datasnap novice development question
Consult the android datasnap novice development question
Time:09-15
I use the server-side TFDConnection - TFDQuery - DataSetProvider server-side () can be easily found online tutorials The client use the TSQLConnection - ClientDataSet - BindSourceDB - grid to query and display data This part I have succeeded and imitate tutorials in AnZhuoDuan run successfully, Update the data by ClientDataSet insert, edit, post, ApplyUpdates, But the update data with this a few for a can be used for loading and unloading end of android code is too weak 1. Do you have any other data update method can recommend for me to learn? Or similar PC that is flexible in the SQL query is written on the client to server directly implement way, I wish to consult 2. Because my AnZhuoDuan is LAN environment, excuse me what method can let AnZhuoDuan SQL database operation is not directly connected through datasnap to? Isn't this supposed to be more efficient and better operate? (my own AnZhuoDuan try DriverID=MSSQL or DriverName=MSSQL cannot be compiled by the android can only be used for PC)
3: I have always been a development of PC, accustomed to the similar: Query2. Edit; Query2. FieldByName (' kind '). AsString:='manual single; Query2. Post;
Query1. Close; In query1.sql. The clear; In query1.sql. Add (' update tb1 set... '); Query1. ExecSQL; Such a database operation mode and DBGRIDEH to control the recordset Do no similar DBGRIDEH AnZhuoDuan this tripartite control available?
CodePudding user response:
Use DataSnap, this is a mature technology, but it needs to connect to the database server, this cloud database, bad connection, its advantage is rich server, thin client, Abandon DataSnap, can use the cloud database, data processing, the need to deal directly with the APP,
Each have advantages and disadvantages,
CodePudding user response:
Direct manipulation SQL pull More convenient
CodePudding user response:
1. There is no limit to use SQL, you can directly write SQL in TFDQuery (2) the mobile end direct Interbase, FireBird is ok, but the oracle, ms SQL server, other did not test
CodePudding user response:
PS: third-party components UniDAC and MyDAC can direct from the mobile end most database systems