Mr. Llama
Mr. Llama

Reputation: 20909

Oracle ODBC connection to SQL Server: Table Name Length Issues

I'm running into a problem when accessing a SQL Server table from an Oracle setup via ODBC.

I can access 90% of the tables absolutely fine, but there's a few tables that have a name that's longer than 30 characters. Whenever I try to interact with the table (describes, selects, etc) Oracle throws an "identifier too long" error and gives up.

Is there a way to coax Oracle into playing nice with the SQL Server tables?

Upvotes: 0

Views: 936

Answers (1)

Justin Cave
Justin Cave

Reputation: 231851

Assuming that we are talking about an Oracle database that has a database link created to a SQL Server database via Heterogeneous Services, you would need to write code using the DBMS_HS_PASSTHROUGH package to interact with the tables in question. You'd also need to use this package if you have tables where there are column names that are not valid Oracle identifiers.

Upvotes: 1

Related Questions