客户端代码:
var data:OleVariant;
begin
  result:=-1;
  try
    totable.filtered:=false;
    totable.filter:='';
    totable.Close;
    result:=mdbc.appconn.AppServer.open(sql,data);
    if result<0 then
    begin
      msgbox('SQL语句出错:'#13#13+sql,'SQL Error',16);
    end
    else
      totable.Recordset:=IUnknown(data) as _recordset;上面代码,如果用dcom连接,可以正常使用
但如果用TSocketConnecttion和TWebConnection,这行就会出错:
totable.Recordset:=IUnknown(data) as _recordset;
难道这二种连接就没法返回数据集了吗?