Q
Problem solve Get help with specific problems with your technologies, process and projects.

Error accessing all SQL Server fields in Oracle environment

I just established a connection from Oracle to SQL Server using generic connectivity and I'm able to perform a select * from tablename@dblink command. However, I noticed that not all fields in the SQL Server table are available in the Oracle environment. I keep getting ORA-00904: invalid column name whenever I tried to select the columns that I thought were in the table. Any possible explanations and solutions to this problem?
When you specify the column name in your statement, make sure that you enclose the column name in double quotes and that the name is case sensitive. For example:

SELECT "column_A","Column_B" FROM "TableXYz"

Oracle tends to convert these to all upper case and SQL Server is more case sensitive. That is the most likely culprit here.

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close