This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 351669 (SHILOH_BUGS)
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'].
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
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.
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
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