本地服务器远程连接其它数据库

Posted Alfred_Xu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了本地服务器远程连接其它数据库相关的知识,希望对你有一定的参考价值。

exec sp_addlinkedserver ‘test ‘, ‘ ‘,‘SQLOLEDB‘,‘58.214.34.132,9046‘
exec sp_addlinkedsrvlogin ‘test‘,‘false‘,null,‘sa‘,‘wxsy1234‘

select count(1) from test.hongdouHR.dbo.attendance_record where manager_id=253 and att_time=‘2016/11/1 9:34:00‘


以上是关于本地服务器远程连接其它数据库的主要内容,如果未能解决你的问题,请参考以下文章