Article ID: 297035 - Last Review: September 26, 2005 - Revision: 2.3 FIX: Correlation Error Using Parameters.Refresh with SQLOLEDBThis article was previously published under Q297035 SYMPTOMS
When executing a parameterized UNION query with the SQLOLEDB OLEDB Provider, the following error may be reported:
Run-time error '-2147467259 (80004005)': The correlation name 'O' is specified multiple times in a FROM clause. RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000, the latest service pack for MDAC 2.6, or the hotfix referenced below:
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
290211
(http://support.microsoft.com/kb/290211/EN-US/
)
INF: How to Obtain the Latest SQL Server 2000 Service Pack
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
300635
(http://support.microsoft.com/kb/300635/EN-US/
)
INFO: How to Obtain the Latest MDAC 2.6 Service Pack
HotfixThe English version of this fix should have the following file attributes or later:Date Version Size File name Platform ------------------------------------------------------------- 05/17/2001 2000.080.0294 491,584 Sqloledb.dll x86 05/17/2001 2000.080.0294 61,440 Sqloledb.rll x86 WORKAROUND
To work around this issue, make sure that the order of the table names in each of the SELECT statements is the same in each UNION query.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in SQL Server 2000 Service Pack 2 and MDAC 2.6 Service Pack 2. MORE INFORMATION
To reproduce this problem, run the following Microsoft Visual Basic code:
| Article Translations
|

Back to the top
