sp_addlinkedsrvlogin with @rmtpassword fails with Msg 7455 after upgrade SQL Server 2022 to 2025

Bin Wang 0 Reputation points
2026-07-23T02:24:42.98+00:00

Our product need to create Linked Servers in SQL Server to achieve our function, it works well in SQL Server 2022, but after upgrading to SQL Server 2025, it's always broken, we analyzed and tested with different case, it only broken when calling sp_addlinkedsrvlogin with with @useself = FALSE and @rmtpassword, the following are the details:

SQL Server: MYOBPF645TLJ\SQL2025DE
Version: 17.0.1115.1
SMK exists and ALTER SERVICE MASTER KEY FORCE REGENERATE was run.
CREATE CREDENTIAL with SECRET succeeds.
sp_addlinkedsrvlogin with @useself = TRUE succeeds.
sp_addlinkedsrvlogin with @rmtpassword fails with Msg 7455.
Same failure with SQLNCLI and MSOLEDBSQL.

SQL Server Database Engine

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 136.2K Reputation points MVP Volunteer Moderator
    2026-07-24T07:41:06.52+00:00

    Yes, I would recommend that you open a support case. I'm not sure that this is a bug, but it may be something in your environment. Then again, maybe that is something that SQL Server and the upgrade should handle correctly. In any case, I expect this to be the fastest way to get the issue resolved.

    I'm a little curious when you say that you roll back to SQL 2022. There is not really a simple way to do that - unless these are virtual machines where you revert to a snapshot.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.