📄 3.htm
字号:
Service作为它的缓冲元件。 </li>
<li style="line-height: 25px">OLE DB将全部的查询结果传递给Cursor
Service,後者将资料存入快取记忆体,包括结果集中的所有中继资料。 </li>
<li style="line-height: 25px">Client Cursor Engine将一个对结果集的参照传回给<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> RDS.DataFactory </b></font>物件。
</li>
<li style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> RDS.DataFactory </b></font>物件建立了一个ADO<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Recordset </b></font>的例项并将其初始化为结果集。ADO
Recordset再将它作为步骤4的原始 Query 呼叫的传回值送回。 </li>
<li style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> RDS.DataFactory </b></font>物件将<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Recordset </b></font>送回ADISAPI,後者将呼叫的传回值以Multipurpose
Internet Mail Extensions(MIME)格式封装。 </li>
<li style="line-height: 25px">ADISAPI将<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Recordset </b></font>以多个MIME封包的形式透过HTTP送往用户端的商务物件代理。
</li>
<li style="line-height: 25px">用户端代理将方法呼叫的结果解除封装,并在用户端Data Cache中重建<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Recordset </b></font>。
</li>
<li style="line-height: 25px">最後,嵌入式<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> RDS.DataControl </b></font>物件将用户端Data
Cache中的资料与可视控制项系结。</li>
</ol>
</font>
<p><br style="line-height: 25px">
</p>
<center style="line-height: 25px">
<p>
<input id="1" onclick="imgclick" type="image" src="F03dd03.gif" border="0" style="line-height: 25px" width="406" height="506"></p>
</center><center style="line-height: 25px">
<table border="0" style="line-height: 25px">
<tbody style="line-height: 25px">
<tr style="line-height: 25px">
<td align="middle" style="line-height: 25px">
<font face="arial" color="#000000" size="2" style="line-height: 25px">
图3-3 ADO应用程式使用RDS进行资料分割的流程图</font></td>
</tr>
</table>
</center>
<p><font face="arial" color="#3e74d7" size="3" style="line-height: 25px">
<b style="line-height: 25px">资料快取<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">RDS的一个最重要特性是它的资料是在用户端和中间层的。Microsoft
Cursor
Service是用来对用户端电脑请求的传回结果集进行快取。用户端对建立到伺服器的另一个程序所需的唯一动作就是更新资料或请求新资料。用户端资料快取能达成以下工作:</font></p>
<font face="arial" color="#000000" size="2" style="line-height: 25px">
<ul style="line-height: 25px">
<li style="line-height: 25px">
减少了用户端应用程式元件和资料库伺服器端之间资料请求的数量。在透过网路进行资料存取的情况下这种效能的提高尤为明显。<br style="line-height: 25px">
</li>
<li style="line-height: 25px">使用户端应用程式逻辑立即可以使用资料,而无需让应用程式等待资料透过网路传输。<br style="line-height: 25px">
</li>
</ul>
</font>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
由於资料是在用户端工作站上快取的,因此使用者可以对其进行快速的分类、筛选和全面检查,而不需要建立另一个与伺服器之间的资料往返过程。</font></p>
<p><font face="arial" color="#3e74d7" size="3" style="line-height: 25px">
<b style="line-height: 25px">用户端资料指标(Cursor)引擎<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
Remote Data Service会自动呼叫Cursor
Service来执行工作。它将资料来源的检索结果集和用户端对结果的更新快取在记忆体中(对於某些大资料集,则临时储存在磁碟上)。它还包括关於资料的配置资讯,如列数、主键和辅键、栏位名称和时间资讯,以及本身的资料表资料。要管理快取,Cursor
Service能够:</font></p>
<font face="arial" color="#000000" size="2" style="line-height: 25px">
<ul style="line-height: 25px">
<li style="line-height: 25px">建立和删除临时资料表<br style="line-height: 25px">
</li>
<li style="line-height: 25px">扩展资料表<br style="line-height: 25px">
</li>
<li style="line-height: 25px">管理对资料值的更新<br style="line-height: 25px">
</li>
<li style="line-height: 25px">提供结构资讯(例如基本的资料表、主栏位、唯读的栏位和经过计算的栏位等)<br style="line-height: 25px">
</li>
<li style="line-height: 25px">提供将更新批次发送到伺服器的机制,透过只发送更改过的记录,使网路流量降到最低<br style="line-height: 25px">
</li>
</ul>
</font>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
关於用户端和伺服器端资料指标差异的更详细资讯,请参阅本章後面的 <a target="_new" href="http://e-msbooks.com/relaunch/XML/paser.asp?src=957-2085-16-6_203.xml#154_1" style="line-height: 25px">〈记录集和资料指标〉</a> 。</font></p>
<p><font face="arial" color="#3e74d7" size="3" style="line-height: 25px">
<b style="line-height: 25px">商务物件代理和RDS.DataSpace物件<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">RDS使用商务物件代理,它使得用户端元件可以与位於中间层的商务物件通讯。代理使封装和解封装,以及跨程序和电脑的应用程式发送资料的动作变得很简单。</font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">如同<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> RDS.DataControl </b></font>物件一样,<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> RDS.DataSpace </b></font>物件是一个非视觉化的ActiveX控制项,它为位於中间层的自订商务物件建立用户端代理。用户端代理使封装、传输,和对跨平台、非连线的记录集(以及其他标准资料类型)解封装变得简单。例如,以下的用户端指令档就用RDS.DataSpace物件将Customer元件例项化。</font></p>
<div style="line-height: 25px; background-color: #d7d7d7">
<font face="Arial" size="3" style="line-height: 25px">
<pre style="line-height: 25px"><!-- RDS.DataSpace object -- >
< OBJECT ID=RDSDataSpace WIDTH=1 HEIGHT=1
CLSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E36" >
</ OBJECT >
< SCRIPT LANGUAGE=VBScript >
Set objProxyCust = RDSDataSpace.CreateObject(" MyCls.Customer", & _
"http://<%= Request.ServerVariables(" SERVER_NAME")%>")
Set rs = objProxyCust.Orders(Request.Form(" UserID"))
</ SCRIPT ></pre>
</font>
</div>
<hr style="line-height: 25px">
<p>
<font face="Arial" color="#3e77d7" size="3" Black style="line-height: 25px">
<b style="line-height: 25px">说明</b></font> </p>
<p><font face="arial" color="black" size="2" style="line-height: 25px"></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">为了用RDS.DataSpace控制项建立伺服器端物件代理,商务元件的ProgID必须在Microsoft
Windows 2000 Server中登录。</font></p>
<div style="line-height: 25px; background-color: #d7d7d7">
<font face="Arial" size="3" style="line-height: 25px">
<pre style="line-height: 25px">HKEY_LOCAL_MACHINE
\SYSTEM
\CurrentControlSet
\Services
\W3SVC
\Parameters
\ADCLaunch</pre>
</font>
</div>
</font>
<p> </p>
<hr style="line-height: 25px">
<hr style="line-height: 25px">
<p>
<font face="Arial" color="#3e77d7" size="3" Black style="line-height: 25px">
<b style="line-height: 25px">注意</b></font> </p>
<p><font face="arial" color="black" size="2" style="line-height: 25px">
除非别无选择,否则请不要使用登录编辑器来直接编辑登录。登录回避了管理工具提供的标准安全检查,这些安全检查可以防止您输入可能引起冲突或有可能降低系统效能或损坏系统的设定。直接编辑登录可能会导致严重的、无法预料的後果,使得系统无法启动并需要重新安装Windows
2000。要配置或自订Windows 2000,请尽量使用控制台(Control Panel)或 Microsoft Management
Console(MMC)。</font></p>
<hr style="line-height: 25px">
<p><font face="arial" color="#3e72d7" size="4" style="line-height: 25px">
<b style="line-height: 25px">中间层元件和用户端资料存取<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
中间层是用户端电脑和资料库伺服器之间的「桥梁」。中间层的元件会对使用者(或商务服务)的请求作出回应以执行一个商务工作。</font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">在一个RDS应用程式中,中间层商务物件处理用户端透过如HTTP这样的传输协定传送来的资料请求。以<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Recordset </b></font>物件形式储存的资料,在透过OLE
DB提供者对用户端控制项进行更新时是很有用的。中间层通常包含下列元件:</font></p>
<font face="arial" color="#000000" size="2" style="line-height: 25px">
<ul style="line-height: 25px">
<li style="line-height: 25px">IIS 5.0和ADISAPI<br style="line-height: 25px">
</li>
<li style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -