Question

I've written an oracle query which executes fine against Oracle 11g DB (I wrote it in PL/SQL developer). But when I try to copy/paste it into Microsoft Query as SQL, it fails with ORA-00900: invalid SQL statement.

Is there a list of what can be included in query for Microsoft Query to be treated as valid? In my query I use a lot of SQL modelling - is it not supported?

Was it helpful?

Solution

I don't believe any of the MODEL features of Oracle are supported by any MS SQL variant.

But as that is an ORA message you are still executing against Oracle, I have to assume that the connection is messing with the SQL. Why do you need to issue the sql through MS Query?

(Perhaps you could define a view/function/proc in Oracle with your model syntax, and then use that object through MS Query)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top