Querying an Oracle database from SQL Server

前端 未结 3 2103
日久生厌
日久生厌 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: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
    

提交回复
热议问题