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

Article translations Article translations
Article ID: 294459 - View products that this article applies to.
This article was previously published under Q294459
BUG #: 351669 (SHILOH_BUGS)
Expand all | Collapse all

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 the Microsoft 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', false
EXEC 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.Customers

Error
=====
Server: Msg 7314, Level 16, State 1, Line 0
OLE 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

Properties

Article ID: 294459 - Last Review: November 6, 2003 - Revision: 3.2
APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
Keywords: 
kbbug kbfix kbsqlserv2000sp1fix KB294459

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com