文章編號: 951937 - 上次校閱: 2008年5月12日 - 版次: 1.2

在執行 Windows Vista、Windows Server 2008 或 Windows XP 的電腦上,當應用程式查詢不同版本 SQL Server 2005 和 SQL Server 2000 內的新插入資料列的識別欄位值時,傳回錯誤值

系統提示本文適用於您使用的作業系統之外的作業系統。與您不相關的文章內容已停用。

在此頁中

全部展開 | 全部摺疊

徵狀

在下列案例中使用 ActiveX Data Objects (ADO) 介面的應用程式,可能會遇到功能方面的問題:
  • 連線至 Microsoft SQL Server 2005、SQL Server 2005 Express Edition、Microsoft SQL Server 2000 或 SQL Server Desktop Engine (也稱為 MSDE 2000) 的應用程式。
  • 該應用程式使用 SET NOCOUNT ON 陳述式連線。
  • 該應用程式使用 Microsoft ActiveX Data Objects (ADO) 用戶端游標,將資料列插入含有識別欄位的表格中。

    注意 這個問題只有在應用程式使用用戶端游標時才會發生。如果應用程式使用伺服器端游標,則不會影響該應用程式。
當應用程式查詢新插入的資料列的識別欄位值時,不正確傳回 "0" 值。這可能會造成應用程式異常,甚至資料遺失。無論是發生電腦異常或資料遺失,都取決於應用程式處理這類案例的方法。

這個問題存在於下列 Windows 作業系統的 Microsoft Data Access Components (MDAC) 元件中:
  • Windows Vista Service Pack 1
  • Windows XP Service Pack 2 含 Hotfix 940569
  • Windows XP Service Pack 3
  • Windows Server 2008
若要解決此問題,請安裝本節所描述的 Hotfix。

解決方案

Hotfix 資訊

Windows Vista Service Pack 1 或 Windows Server 2008

目前 Microsoft 已提供支援的 Hotfix。但是其目的只為修正本文中所描述的問題。請只在發生此特定問題的系統上套用這個 Hotfix。這個 Hotfix 可能會接受其他測試。因此,如果此問題沒有對您造成嚴重影響,Microsoft 建議您等候下一版包含此 Hotfix 的 Service Pack。

如果要解決這個問題,請向 Microsoft Online Customer Services 提出取得此 Hotfix 的要求。如果要在線上提交取得此 Hotfix 的要求,請造訪下列 Microsoft 網站:
http://go.microsoft.com/?linkid=6294451 (http://go.microsoft.com/?linkid=6294451)
注意 如果發生其他問題,或者需要進行任何疑難排解,您可能必須另外建立一份服務要求。一般來說,如果有其他支援問題是此特定 Hotfix 無法解決的,才會收取支援費用。如果要另外建立一份服務要求,請造訪下列 Microsoft 網站:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
先決條件
如果要套用這個 Hotfix,電腦必須已安裝 Windows Vista Service Pack 1 或 Windows Server 2008。
重新啟動需求
套用這個 Hotfix 之後,不需要重新啟動電腦。
Hotfix 取代資訊
這個 Hotfix 不會取代任何其他先前發行的 Hotfix。
登錄資訊
如果要使用這個 Hotfix,您不需要針對登錄進行任何變更。
檔案資訊
此 Hotfix 的英文版具有下表中所列的檔案屬性 (或更新的檔案屬性)。這些檔案的日期和時間是以 Coordinated Universal Time (UTC) 表示。當您檢視檔案資訊時,它會轉換為當地時間。如果要查看 UTC 與當地時間的差異,請使用 [控制台] 中 [日期和時間] 項目的 [時區] 索引標籤。

Windows Vista with SP1 或 Windows Server 2008,x86 版本
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間平台
Package_1_for_kb951937~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,98524-Apr-200817:30不適用
Package_2_for_kb951937~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,82324-Apr-200817:30不適用
Package_3_for_kb951937~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,82324-Apr-200817:30不適用
Package_for_kb951937_client_1~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,36724-Apr-200817:30不適用
Package_for_kb951937_client~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,43024-Apr-200817:30不適用
Package_for_kb951937_sc_0~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,42124-Apr-200817:30不適用
Package_for_kb951937_sc~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,42224-Apr-200817:30不適用
Package_for_kb951937_server_0~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,42524-Apr-200817:30不適用
Package_for_kb951937_server~31bf3856ad364e35~x86~~6.0.1.0.mum不適用1,43024-Apr-200817:30不適用
Update.mum不適用2,58024-Apr-200817:30不適用
X86_abe633cc9668eadbe23782cdce2965cc_31bf3856ad364e35_6.0.6001.22166_none_c3cb61880075f656.manifest不適用73824-Apr-200817:30不適用
X86_microsoft-windows-m..nts-mdac-rds-ce-dll_31bf3856ad364e35_6.0.6001.22166_none_623fb3925b080f30.manifest不適用15,00124-Apr-200805:16不適用
Msadce.dll6.0.6001.22166454,65624-Apr-200804:42x86
Windows Vista with SP1 或 Windows Server 2008, x64 版本
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間平台
Amd64_2712aba765c6f92e3b4baaf06f2e9334_31bf3856ad364e35_6.0.6001.22166_none_44c0a311b1f35595.manifest不適用1,12424-Apr-200817:30不適用
Amd64_microsoft-windows-m..nts-mdac-rds-ce-dll_31bf3856ad364e35_6.0.6001.22166_none_be5e4f1613658066.manifest不適用14,68324-Apr-200811:38不適用
Package_1_for_kb951937~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用2,25324-Apr-200817:30不適用
Package_2_for_kb951937~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用2,08924-Apr-200817:30不適用
Package_3_for_kb951937~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用2,08924-Apr-200817:30不適用
Package_for_kb951937_client_1~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用1,37524-Apr-200817:30不適用
Package_for_kb951937_client~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用1,43824-Apr-200817:30不適用
Package_for_kb951937_sc_0~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用1,42924-Apr-200817:30不適用
Package_for_kb951937_sc~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用1,43024-Apr-200817:30不適用
Package_for_kb951937_server_0~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用1,43324-Apr-200817:30不適用
Package_for_kb951937_server~31bf3856ad364e35~amd64~~6.0.1.0.mum不適用1,43824-Apr-200817:30不適用
Update.mum不適用2,59824-Apr-200817:30不適用
Msadce.dll6.0.6001.22166589,82424-Apr-200805:08x64
Windows Vista with SP1 或 Windows Server 2008, Itanium 版本
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間平台
Ia64_7416acfc5d9273e2a12739c9c1703f11_31bf3856ad364e35_6.0.6001.22166_none_52eec04c8f1fd622.manifest不適用1,12224-Apr-200817:30不適用
Ia64_microsoft-windows-m..nts-mdac-rds-ce-dll_31bf3856ad364e35_6.0.6001.22166_none_624157885b06182c.manifest不適用14,66724-Apr-200805:24不適用
Package_1_for_kb951937~31bf3856ad364e35~ia64~~6.0.1.0.mum不適用2,08424-Apr-200817:30不適用
Package_2_for_kb951937~31bf3856ad364e35~ia64~~6.0.1.0.mum不適用2,08424-Apr-200817:30不適用
Package_for_kb951937_sc_0~31bf3856ad364e35~ia64~~6.0.1.0.mum不適用1,42524-Apr-200817:30不適用
Package_for_kb951937_sc~31bf3856ad364e35~ia64~~6.0.1.0.mum不適用1,42624-Apr-200817:30不適用
Package_for_kb951937_server_0~31bf3856ad364e35~ia64~~6.0.1.0.mum不適用1,42924-Apr-200817:30不適用
Package_for_kb951937_server~31bf3856ad364e35~ia64~~6.0.1.0.mum不適用1,43424-Apr-200817:30不適用
Update.mum不適用1,92224-Apr-200817:30不適用
Msadce.dll6.0.6001.221661,175,55224-Apr-200804:50IA-64

Windows XP

目前 Microsoft 已提供支援的 Hotfix。但是其目的只為修正本文中所描述的問題。請只在發生此特定問題的系統上套用這個 Hotfix。這個 Hotfix 可能會接受其他測試。因此,如果此問題沒有對您造成嚴重影響,Microsoft 建議您等候下一版包含此 Hotfix 的 Windows XP Service Pack。

如果要解決這個問題,請向 Microsoft Online Customer Services 提出取得此 Hotfix 的要求。如果要在線上提交取得此 Hotfix 的要求,請造訪下列 Microsoft 網站:
http://go.microsoft.com/?linkid=6294451 (http://go.microsoft.com/?linkid=6294451)
注意 如果發生其他問題,或者需要進行任何疑難排解,您可能必須另外建立一份服務要求。一般來說,如果有其他支援問題是此特定 Hotfix 無法解決的,才會收取支援費用。如果要另外建立一份服務要求,請造訪下列 Microsoft 網站:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
先決條件
如果要套用這個 Hotfix,電腦必須已安裝 Windows XP Service Pack 2 或 Service Pack 3。
重新啟動需求
套用這個 Hotfix 之後,不需要重新啟動電腦。
Hotfix 取代資訊
這個 Hotfix 不會取代任何其他先前發行的 Hotfix。
登錄資訊
如果要使用這個 Hotfix,您不需要針對登錄進行任何變更。
檔案資訊
此 Hotfix 的英文版具有下表中所列的檔案屬性 (或更新的檔案屬性)。這些檔案的日期和時間是以 Coordinated Universal Time (UTC) 表示。當您檢視檔案資訊時,它會轉換為當地時間。如果要查看 UTC 與當地時間的差異,請使用 [控制台] 中 [日期和時間] 項目的 [時區] 索引標籤。

Windows XP 含 SP2, x86 版本
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間
Msadce.dll2.81.1134.0331,77624-Apr-200814:20
Windows XP 含 SP3、x86 版本
摺疊此表格展開此表格
檔案名稱檔案版本檔案大小日期時間
Msadce.dll2.81.3001.0331,77624-Apr-200814:04

狀況說明

Microsoft 已確認本篇文章<適用於>一節所列之 Microsoft 產品確實有上述問題。

其他相關資訊

當使用 Microsoft Dynamics Retail Management System (RMS) Store Operations and Headquarters 的客戶使用受影響的和受支援的 Windows 作業系統時,會受到此問題的影響。建議您安裝此 Hotfix 預防潛在的無效資料或資料遺失等問題。

如需詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:
824684? (http://support.microsoft.com/kb/824684/ ) 說明 Microsoft 軟體更新的標準術語

這篇文章中的資訊適用於:
  • Windows Vista Service Pack 1?應用於:
    • Windows Vista 商用進階 64 位元版
    • Windows Vista 家用入門 64 位元版
    • Windows Vista 家用進階 64 位元版
    • Windows Vista 旗艦 64 位元版
    • Windows Vista 商用入門版
    • Windows Vista 商用入門 64 位元版
    • Windows Vista 商用進階版
    • Windows Vista 家用入門版
    • Windows Vista 家用進階版
    • Windows Vista 旗艦版
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 Standard without Hyper-V
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
  • Microsoft Windows XP Service Pack 3
關鍵字:?
kbexpertiseadvanced kbfix kbqfe kbhotfixserver KB951937
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。