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

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'

posted @ 2016-11-08 16:07  Alfred.Xu  阅读(290)  评论(0编辑  收藏  举报