请问如何设置ClientDataSet和远程服务器连结,谢谢。

解决方案 »

  1.   

    clientdataset需要配合连接组件一起使用
    Specifies the connection component that this client dataset uses to connect to an application server.property RemoteServer: TCustomRemoteServer;
    DescriptionIf the client dataset is in the client portion of a multi-tiered application, use RemoteServer to specify the connection component that connects to the application server. The connection component locates the application server and obtains its IAppServer interface, which the client dataset can use for communicating with a remote provider.Although it is not required, you can also set RemoteServer to a TLocalConnection component when working with a provider that resides in the same application. If a client application uses more than connection component, the application can change which connection a client dataset uses by changing the value for this property.Tip: If you have several client datasets that all use the same connection component and you think you may change the connection component later (for example, to change the protocol), you can use the ConnectionBroker property to centralize the connection.
    多看帮助。
      

  2.   

    简单的说说:
    1。用ado\dbexpress\bde等引擎与数据库连接到table或query等
    2。加入支持者;
    3。加入cds,与支持者连接。
    ok,完成。
      

  3.   

    1、加入一个连接组件,该组件连接服务器程序。active属性为真。2、clientdataset组件Remoteserver属性选择连接前面加入的连接组件。3、providername属性选择服务器远程数据模块中的provider组件。4、active属性为真。大功告成!
      

  4.   

    ClientDataSet可以使用远程数据模块,加连接组件
      

  5.   

    webconnect
    socketconnet
    dcomconnect
    connect