all groups > sql server connect > april 2004 >
You're in the

sql server connect

group:

Views from Oracle using linked server


Views from Oracle using linked server marcus.brodd NO[at]SPAM ibitec.se
4/23/2004 6:17:11 AM
sql server connect:
Hi all!

I have a serious problem....(Who doesn´t...;)

I have a SQL Server 2000 and a Oracle 8.1.7 Database. I have set up a
number of views in SQL Server that are populated via a linked server
connection. In almost all cases this works great, but for one view.
The view displays OK, BUT one column from the source database
table(Oracle) is missing.

The syntax I am using to create the view is:
CREATE VIEW TEST as SELECT * from (openquery('server','select * from
sometable'))

If i try to add the missing column name in the last section of the
statement, i get a provider error, something like "Unknown error".

The missing column is of type char(4) and can be null.

Any ideas?

Re: Views from Oracle using linked server Sue Hoegemeier
4/26/2004 5:26:45 PM
Have you tried changing the Oracle query to not use * but
rather specifying each column you need (vs just adding the
missing column).
Could you post the exact error message and error number?

-Sue

On 23 Apr 2004 06:17:11 -0700, marcus.brodd@ibitec.se
[quoted text, click to view]
AddThis Social Bookmark Button