首先
exec sp_configure 'show advanced options',1reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1reconfigure --打开
SELECT * INTO 表名 FROM OPENDATASOURCE(
'SQLOLEDB',
'Data Source=192.168.1.90;User ID=sa;Password=sony'
).TelemedicinePlatform_0511.表名
exec sp_configure 'Ad Hoc Distributed Queries',0reconfigure exec sp_configure 'show advanced options',0reconfigure --关闭
注意:移动时候如果目标数据库有相同的表,必须先删除