Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"ODBC Call Failed" error when you run a query with an outer join against linked SQL Server tables


View products that this article applies to.

Symptoms

When you create a nested query against linked SQL Server tables and the top level query contains an outer join, you receive the following error message when you try to run the query:
ODBC--Call Failed.

[Microsoft][ODBC SQL Server Driver][SQL Server] The column prefix 'name' does not match with a table name or alias name used in the query. (#107)

↑ Back to the top


Resolution

This problem has been fixed in the latest edition of the Jet Service Pack. For additional information about how to obtain the latest version of the Jet 4.0 database engine, click the following article number to view the article in the Microsoft Knowledge Base:
239114 How To: Obtain the Latest Service Pack for the Microsoft Jet 4.0 Database Engine

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem has been fixed in the latest edition of the Jet Service Pack.

↑ Back to the top


More information

Steps to Reproduce the Problem

  1. Create a DSN to connect to the Northwind database on a SQL Server.
  2. Link the following tables from the Northwind database: Customers, Orders, and Order Details.
  3. Create the following query, and then save it as qryLevel1:
    SELECT dbo_Customers.CompanyName, dbo_Orders.OrderID
    FROM dbo_Customers INNER JOIN dbo_Orders ON dbo_Customers.CustomerID = dbo_Orders.CustomerID;
    					
  4. Create the following query and then save it as qryFinal:
    SELECT [dbo_Order Details].ProductID, qryLevel1.OrderID
    FROM [dbo_Order Details] LEFT JOIN qryLevel1 ON [dbo_Order Details].OrderID = qryLevel1.OrderID;
    					
  5. Run the qryFinal query. Note that you receive the error message that is mentioned in the "Symptoms" section of this article. When you run this same query on a computer that has the latest edition of the Jet Service Pack installed, the query runs as expected.

↑ Back to the top


Keywords: KB303257, kbfix, kberrmsg, kbbug

↑ Back to the top

Article Info
Article ID : 303257
Revision : 8
Created on : 7/28/2006
Published on : 7/28/2006
Exists online : False
Views : 415