Is it possible to share database connection between datasnap server and client?
I want to execute dynamic sql in client and receive results.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found 2 ways to execute dynamic sql in client side
1) Using DbxConnection (dbExpress)
2) Using DataSet descendant
Server side components
ServerMethods class must be TDSServerModule descendant
Client side components
code to execute query
Server side code:
MainMethods.pas
MainMethods.dfm
Client side code:
client.pas
client.dfm