Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Linked server
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sravanim
Yak Posting Veteran

58 Posts

Posted - 02/18/2014 :  07:02:07  Show Profile  Reply with Quote
when i am trying to fetch data from linked server i got the below message

Error message:OLE DB provider "OraOLEDB.Oracle" for linked server "Linkedservername" returned message "ORA-00936: missing expression".

Query what i ran:select * from OPENQUERY([Linkedservername],'SELECT FROM Schemaname..Viewname');

TG
Flowing Fount of Yak Knowledge

USA
6065 Posts

Posted - 02/18/2014 :  16:38:01  Show Profile  Reply with Quote
Looks like you need help for Oracle and this site is specific to MS Sql Server.
However, your select statement looks to be missing a column list.
quote:
SELECT <need something here> FROM Schemaname..Viewname



Be One with the Optimizer
TG
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000