Querying an Oracle database from SQL Server

好久不见. 提交于 2019-11-30 21:25:29

If you have successfully added your linked server, you no longer need OPENQUERY. You can just include the linked server name as the first part of the qualified name like so:

SELECT * FROM OracleLinkServer.database.schema.table

Not sure which parts you need, but the dots are key. Try this first:

SELECT * FROM OracleLinkServer...oracleTable
kam0200
select * 
from [server]..[xxx].[yyyyy] 

It works for me.

Change

,@provider = 'MSDASQL'

with

,@provider = 'MSDAORA'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!