当前位置:网站首页>没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法
没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法
2022-07-02 10:59:00 【迪丽热爱】
1.问题
创建链接服务器时候(无论用语句还是画面添加),
执行“EXEC sp_addlinkedsrvlogin ‘SER_REMOTEERP’,‘false’,null,‘sa’,‘密码’”,
出现:“没有从远程服务器’‘映射到本地用户’(null)/sa’的远程用户’sa’及服务主密码解密错误”
--创建范例如下
--SQLOLEDB 默认为SQL数据库
--SER_REMOTEERP 为你取得服务名,可以写192.168.1.2 也可以任意取其他
EXEC sp_addlinkedserver 'SER_REMOTEERP','','SQLOLEDB','192.168.1.2'
--本地用户名,远程服务登入名,远程服务的密码
--一般创建用 null 或SA
EXEC sp_addlinkedsrvlogin 'SER_REMOTEERP','false',null,'sa','密码'
EXEC sp_serveroption 'SER_REMOTEERP','rpc out','true'

2.解决办法
在sysadmin权限的用户下执行,建议直接用SA的账号登入的情况下,
执行如下语句:alter service master key force regeneraten
alter service master key force regeneraten
3.重新创建 及 验证
将EXEC sp_addlinkedsrvlogin ‘SER_REMOTEERP’,‘false’,null,‘sa’,‘密码’ 执行就不会报错
选中接口 → 点击测试连接 → 提示成功

边栏推荐
- Qt原代码基本知识
- Characteristics of selenium
- Custom events, global event bus, message subscription and publishing, $nexttick
- 2022 home projector preferred! Dangbei F5 brings the ultimate audio-visual experience with its powerful audio-visual effect
- Qt新建项目
- Go operation redis
- 2022家用投影仪首选!当贝F5强悍音画效果带来极致视听体验
- Data consistency between redis and database
- Origin绘制热重TG和微分热重DTG曲线
- Whole house Wi Fi: a pain point that no one can solve?
猜你喜欢

Subcontracting configuration of uniapp applet subpackages

你知道Oracle的数据文件大小有上限么?

Browser driven Download

联合搜索:搜索中的所有需求

QT - make a simple calculator - realize four operations

The most complete analysis of Flink frame window function

HMS core machine learning service helps zaful users to shop conveniently

Yolov3 & yolov5 output result description

Systemserver process

In 2021, the global revenue of structural bolts was about $796.4 million, and it is expected to reach $1097.6 million in 2028
随机推荐
docker mysql
[deep learning] simple implementation of neural network forward propagation
Development skills of rxjs observable custom operator
Multi rotor aircraft control using PID and LQR controllers
Chaos engineering platform chaosblade box new heavy release
故事点 vs. 人天
Essential elements of science fiction 3D scenes - City
【模板】最长公共子序列 (【DP or 贪心】板子)
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 04 | 深入浅出索引(上)
TeamTalk源码分析之win-client
Daily learning 3
自定义事件,全局事件总线,消息订阅与发布,$nextTick
In 2021, the global revenue of structural bolts was about $796.4 million, and it is expected to reach $1097.6 million in 2028
kaggle如何使用utility script
Talk about idempotent design
联合搜索:搜索中的所有需求
给Android程序员的一些面试建议「建议收藏」
How to use SAP's metadata framework (MDF) to build custom business rules?
Everyone believes that the one-stop credit platform makes the credit scenario "useful"
Openharmony notes --------- (4)