Home > Back-end >  DataSnap problem
DataSnap problem

Time:10-05

If I put a in the first TDSServerModule1 UniConnection
Then in the second TDSServerModule2 cannot access the first data module UniConnection

The code

//return olevariant data
The function TServerMethods2. ReturnDSP (SQL: string) : OleVariant;
Var
MRC: TUniQuery;
DSP: TDataSetProvider;
The begin
MRC:=TUniQuery. Create (self);
MRC. Connection:=ServerModule1. UniConnection1;//access less than
MRC. SQL. Text:=SQL;
MRC. Open;

DSP:=TDataSetProvider. Create (self);
DSP. The DataSet:=MRC;
Result:=DSP. The Data;

FreeAndNil (DSP);
FreeAndNil (MRC);
end;


MRC. Connection:=ServerModule1. UniConnection1; Can't access

The brothers have know?
  • Related