Cross-server SQL

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

    Are SQL Server Integration Services (SSIS) an option? If so, I'd use that.

    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题