FIX: Incorrect Results Using Distinct Keyword with Recordset DTCID: Q191971
|
When supplying a SQL statement to the Recordset DTC that uses the DISTINCT keyword, the resulting recordset contains the wrong number of records in the resultset. Duplicate records should be ignored as specified by the DISTINCT keyword. However, duplicate records are being returned.
To work around this behavior, set the cursor location to be server-side:
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
Select DISTINCT title_id from titleauthor
title_id
--------
BU1032
BU1111
BU2075
BU7832
MC2222
MC3021
PC1035
PC8888
PC9999
PS1372
PS2091
PS2106
PS3333
PS7777
TC3218
TC4203
TC7777
(17 row(s) affected)
Additional query words:
Keywords : kbADO kbCtrl kbVisID600bug kbGrpASP kbSQLServ650bug kbVS600sp3fix
Version : WINDOWS:6.0; winnt:6.5
Platform : WINDOWS winnt
Issue type : kbbug
Last Reviewed: May 24, 1999