FIX: Can't Use Four-Part Name to Query Oracle Table If Name Contains Lowercase Characters

This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 351669 (SHILOH_BUGS)
Symptoms
When you run a four-part name query on a table in an Oracle data source, if the table name contains lowercase characters, you may receive an error message that resembles the following, with the OLE DB provider listed being the name of your linked server:
Server: Msg 7314, Level 16, State 1, Line 0

OLE DB provider 'TestName' does not contain table 'XXXXX'. The table either does not exist or the current user does not have permissions on that table.

OLE DB error trace [Non-interface error: OLE DB provider does not contain the table: ProviderName='TestName', TableName='XXXXX'].
Resolution
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
Workaround
To work around this problem, use OpenQuery syntax as follows:
Select *  from openquery(TestName, 'select * from "Customers"')				
For more information, see SQL Server Books Online.
Status
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
More information
The following code demonstrates the problem:
-- The linked server to the Oracle database is created as follows.exec sp_addlinkedserver 'TestName', 'Oracle 7.3', 'MSDAORA', 'ora'exec sp_serveroption 'TestName', 'collation compatible', falseEXEC sp_addlinkedsrvlogin 'TestName', 'false', NULL, 'carrol', 'Password'go-- Part 1: Openquery to Customers table works fine.Select *  from openquery(TestName, 'select * from "Customers"')-- Part 2: Using four-part name for Customer table gives an error.select * from TestName..PSS.CustomersError=====Server: Msg 7314, Level 16, State 1, Line 0OLE DB provider 'TestName' does not contain table '"PSS"."Customers"'.  The table either does not exist or the current user does not have permissions on that table. OLE DB error trace [Non-interface error:  OLE DB provider does not contain the table: ProviderName='TestName', TableName='"PSS"."Customers"'].-- Part 3: Works fine for table with all uppercase letters.select * from TestName..RPUBS.TITLES				
For additional information regarding this problem on SQL Server 7.0, click the article number below to view the article in the Microsoft Knowledge Base:
248062 FIX: Distributed Query with Oracle Cannot Work with Table Exported by DTS
msdaora oledb
Properties

Article ID: 294459 - Last Review: 01/16/2015 22:10:35 - Revision: 4.0

Microsoft SQL Server 2000 Standard Edition

  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB294459
Feedback