Article ID: 294459
Article Last Modified on 11/6/2003
APPLIES TO
- Microsoft SQL Server 2000 Standard Edition
This article was previously published under Q294459
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:
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
Additional query words: msdaora oledb
Keywords: kbbug kbfix kbsqlserv2000sp1fix KB294459