Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 294459 - Last Review: November 6, 2003 - Revision: 3.2
FIX: Can't Use Four-Part Name to Query Oracle Table If Name Contains Lowercase Characters
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:
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Â
(http://kbalertz.com/Feedback.aspx?kbNumber=290211/EN-US/
)
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Â
(http://kbalertz.com/Feedback.aspx?kbNumber=248062/EN-US/
)
FIX: Distributed Query with Oracle Cannot Work with Table Exported by DTS
APPLIES TO
- Microsoft SQL Server 2000 Standard Edition
| kbbug kbfix kbsqlserv2000sp1fix KB294459 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please