?? mdrefcursorengine.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML dir=ltr>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=gb2312"><title>Microsoft Cursor Service for OLE DB</title>
<style>@import url(msdn_ie4.css);</style>
</HEAD>
<BODY>
<h1><a name="mdrefcursorengine"></a>Microsoft Cursor Service for OLE DB</h1>
<p><a href="dir.htm">目錄</a></p>
<p>
Microsoft Cursor Service for OLE DB 服務組件補充了數據提供者的游標支持功能。其結果,用戶可以從所有數據提供者處獲得相對統一的功能。</p>
<p>
Cursor Service for OLE DB 服務組件使動態屬性可用,并增強了某些方法的性能。例如,<b>Optimize</b> 動態屬性允許創建臨時索引來方便某些操作,如 <b>Find</b> 方法。</p>
<p>
Cursor Service for OLE DB 允許支持在各種情況下的批更新。當數據提供者只能提供功能較少的游標(如靜態游標)時,批更新可以模擬功能較多的游標類型(如動態游標)。</p>
<p class=label>
<b>關鍵字</b></p>
<p>
要調用該組件,請將 <b>Recordet</b> 或 <b>Connection</b> 對象的 <b>CursorLocation</b> 屬性設置為 <b>adUseClient</b>。</p>
<pre>connection.<span class=cfe><b>CursorLocation</b></span>=<span class=cfe><b>adUseClient</b></span>
recordset.<span class=cfe><b>CursorLocation</b></span>=<span class=cfe><b>adUseClient</b></span>
</pre>
<p class=label>
<b>動態屬性</b></p>
<p>
當調用 Cursor Service for OLE DB 時,如下動態屬性將被添加到 <b>Recordset </b>對象的 <b>Properties</b> 集合中。</p>
<table border=1 cellpadding=5 cols=2 frame=below rules=rows>
<tr valign=top>
<td class=label width=49%><b>動態屬性名稱</b></td>
<td class=label width=51%><b>說明</b></td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprohandlerpropertyrds.htm">Handler</a> (RDS)</td>
<td width=51%>指示是否啟用對 <b>RDSServer.DataFactory </b>的服務器端自定義支持。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprodynname.htm">Name</a> </td>
<td width=51%>指示 <b>Recordset</b> 的名稱。可能在當前(或隨后)的數據形狀命令中被引用。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprooptimizepropertyrds.htm">Optimize</a></td>
<td width=51%>指示是否應創建索引。當設置為 <b>True </b>時,將臨時創建索引,以便改善某些操作的執行。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprodynresynccommand.htm">Resync Command</a></td>
<td width=51%>指定當 <b>Unique Table</b> 屬性生效時由 <b>Resync </b>方法使用的自定義命令字符串。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprodynuniquetable.htm">Unique Catalog</a></td>
<td width=51%>指示數據庫的名稱,該數據庫包含在 <b>Unique Table</b> 屬性中被引用的表。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprodynuniquetable.htm">Unique Schema</a></td>
<td width=51%>指示在 <b>Unique Table</b> 屬性中被引用的表的擁有者名稱。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprodynuniquetable.htm">Unique Table</a></td>
<td width=51%>指示在 <b>Recordset</b> 中的一個表的名稱,該 <b>Recordset</b> 由多個可以通過插入、更新或刪除操作進行更改的表創建。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprodynupdateresync.htm">Update Resync</a></td>
<td width=51%>指定當 <b>Unique Table</b> 屬性生效時,是否在 <b>UpdateBatch</b> 方法(和它的行為)后隱式調用<b> Resync</b> 方法。</td>
</tr>
</table><br>
<p>
通過將動態屬性的名稱指定為 <b>Properties</b> 屬性的索引,也可以設置或檢索該動態屬性。例如,獲得并打印 <b>Optimize</b> 動態屬性的當前值,然后設置新值,如:</p>
<pre>Debug.Print rs.Properties("Optimize")
rs.Properties("Optimize") = True
</pre>
<p class=label>
<b>內置屬性行為</b></p>
<p>
Cursor Service for OLE DB 也影響某些內置屬性的行為。</p>
<table border=1 cellpadding=5 cols=2 frame=below rules=rows>
<tr valign=top>
<td class=label width=49%><b>屬性名稱</b></td>
<td class=label width=51%><b>說明</b></td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprocursortype.htm">CursorType</a></td>
<td width=51%>補充 <b>Recordset </b>可用的游標類型。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprolocktype.htm">LockType</a></td>
<td width=51%>補充 <b>Recordset </b>可用的鎖定類型。允許批更新。</td>
</tr>
<tr valign=top>
<td width=49%><a href="mdprosortpropertyado.htm">Sort</a></td>
<td width=51%>指定 <b>Recordset</b> 以之排序的一個或更多個字段名,以及每個字段是否按升序或降序排序。</td>
</tr>
</table><br>
<p class=label>
<b>方法行為</b></p>
<p>
Cursor Service for OLE DB 啟用或影響 <b>Field</b> 對象的 <a href="mdmthappend.htm">Append</a> 方法的行為;以及 <b>Recordset</b> 對象的 <a href="mdmthrstopen.htm">Open</a>、<a href="mdmthadoresync.htm">Resync</a>、<a href="mdmthupdatebatch.htm">UpdateBatch</a> 和 <a href="mdmthrstsave.htm">Save</a> 方法的行為。</p>
<center> <A HREF="http://www.51windows.Net">www.51windows.Net</A></center>
<SCRIPT LANGUAGE="JavaScript" src="/log/sitelog2.asp"></SCRIPT>
<script src="script.js"></script></BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -