Cross-server SQL

前端 未结 8 1116
再見小時候
再見小時候 2021-02-02 08:07

I want to port data from one server\'s database to another server\'s database. The databases are both on a different mssql 2005 server. Replication is probably not an option sin

8条回答
  •  耶瑟儿~
    2021-02-02 08:21

    You can use Open Data Source Like this :

    EXEC sp_configure 'show advanced options', 1
    GO
    RECONFIGURE
    GO
    
    EXEC sp_configure 'Ad Hoc Distributed Queries', 1
    GO
    RECONFIGURE
    GO
    
    
    SELECT  *
    FROM    OPENDATASOURCE('SQLOLEDB',
                       'Data Source=;
                        User ID=;Password=')...
    
    Go
    

    提交回复
    热议问题