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. 多看帮助。
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.
多看帮助。
1。用ado\dbexpress\bde等引擎与数据库连接到table或query等
2。加入支持者;
3。加入cds,与支持者连接。
ok,完成。
socketconnet
dcomconnect
connect