SQL statement joining Oracle and MS SQL Server

前端 未结 2 472
温柔的废话
温柔的废话 2021-01-04 13:33

I never seen this, but is it possible to have one SQL call join data from Oracle and SQl Server?

2条回答
  •  佛祖请我去吃肉
    2021-01-04 13:59

    Yes- both Oracle and SQL Server support the linked server concept. That allows you to reference the other server using a 4 part name. For example:

    select  *
    from    LocalDb.Schema.Table
    cross join
            OracleLinkedServer.RemoteDb.RemoteSchema.RemoteTable
    

提交回复
热议问题