Cross-server SQL

前端 未结 8 965
再見小時候
再見小時候 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:43

    Would you be transferring the whole content of the database from one server to another or just some data from a couple of tables?

    For both options SSIS would do the job especially if you are planning to to the transfer on a regular basis.

    If you simply want to copy some data from 1 or 2 tables and prefer to do it using TSQL in SQL Management Studio then you can use linked server as suggested by pelser

    1. Set up the source database server as a linked server
    2. Use the following syntax to access data
    select columnName1, columnName2, etc from serverName.databaseName.schemaName.tableName

提交回复
热议问题