多表对应更新(跨服务器).sql

update r_RightList set MenuPos=( select  MenuPos
from OPENROWSET('SQLOLEDB',
'SERVER=219.139.49.10;uid=sa;pwd=;Database=','select * from r_RightList') as a
  where r_RightList.RightCode=a. RightCode)

posted @ 2012-10-23 17:12  虫虫飞520  阅读(210)  评论(0)    收藏  举报