|

楼主 |
发表于 2012-12-17 14:12:07
|
显示全部楼层
本帖最后由 qqqqq 于 2012-12-17 16:09 编辑
找到的一些类似的问题
Do you really need a middle-tier layer on a separate machine?
You can use a TSQLQuery on the middle-tier machine, using a normal 'select * from table' connected to the db-server. You can use streams to connect this data to the end-tier, but you have to implement something to send this stream through a network yourself. On the end-tier you can also use a TSQLQuery, but do not open it using a query, but by assigning a stream (from the middle-tier) to it.
In theory this works, also with updates. But there's a lot that have to be done to make this all really work...
大致翻译一下:
可以用TSQLQuery的'select * from table'来打开数据表,以streams 格式传递数据(包括网络传递),在终端层也可以用TSQLQuery接收数据,再进行updates等操作。
我在设计三层结构时,想用TSQLQuery连接数据库后台,将数据以streams 形式传递到前台,用BUFDATASET接收,类似于DELPHI的CLIENTDATASET,在修改完成后,再以streams 的形式传回到后台TSQLQuery,现在问题是:TSQLQuery接收到数据如何更新到数据表,要象DELPHI有个TDataSetProvider就好了。
|
|