FIX: Updating Single Row Replaces Data in All Rows of a CursorID: Q168295
|
When you change the value of a single column and single row in a cursor, the update replaces all rows of the cursor with the new value. This issue arises when you use a two-table cursor and one of the tables has a compound key index.
The cursor does not output all table columns used in the definition of the table's compound key.
Make sure all columns in a compound key are included in a cursor.
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in Visual
Studio 97, Service Pack 1.
For additional information about the Visual Studio 97 Service Pack 1,
please see the following article in the Microsoft Knowledge Base:
Q170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
cText nID
test 1
test2 2
test3 3
test4 2
test5 2
cText
test
test2
test3
test4
test5
SELECT Test2.cText, Test1.nID
FROM Test2 INNER JOIN Test1 ON Test1.cText= Test2.cText
For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/support/vinterdev/
Keywords : kbother kbADO kbVisID100 kbVisID600fix kbVS97sp1fix kbVS97sp2fix kbGrpASP
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 10, 1999