Querying an Oracle database from SQL Server

前端 未结 3 2083
日久生厌
日久生厌 2021-01-06 02:34

I have an Oracle 11g XE database that I would like to transfer into SQL Server Express 2005.

At first I thought I\'d just generate the tables in Oracle as SQL, manip

相关标签:
3条回答
  • 2021-01-06 03:12
    select * 
    from [server]..[xxx].[yyyyy] 
    

    It works for me.

    0 讨论(0)
  • 2021-01-06 03:25

    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
    
    0 讨论(0)
  • 2021-01-06 03:26

    Change

    ,@provider = 'MSDASQL'
    

    with

    ,@provider = 'MSDAORA'
    
    0 讨论(0)
提交回复
热议问题