Sqlserver 创建到sqlserver 的链接服务器

时间:2022-12-07 16:05:41
exec sp_addlinkedserver   'SN_MASTER_SRV', '', 'SQLOLEDB ', '129.223.252.173'
exec sp_addlinkedsrvlogin 'SN_MASTER_SRV', 'false',null, 'catman', 'catman'
exec sp_addlinkedsrvlogin 'SN_MASTER_SRV', 'false',null, 'catman1', 'catman1' exec sp_addlinkedserver 'CPC_SIGNDB_SRV', '', 'SQLOLEDB ', '129.223.252.173'
exec sp_addlinkedsrvlogin 'CPC_SIGNDB_SRV', 'false',null, 'catman', 'catman'
exec sp_addlinkedsrvlogin 'CPC_SIGNDB_SRV', 'false',null, 'catman1', 'catman1' select * from CPC_SIGNDB_SRV.SignDB.dbo.AcctImg

配置参阅以下博客:

http://blog.163.com/fang_xiaofei/blog/static/1307305052010735149108/