Linked server is accessing system databases temp and master

Newtojob 66 Reputation points
2025-03-17T19:44:24.1166667+00:00

Hi,

I have created a linked server for two user databases, but the linked server is accessing the system databases also.

is there way to restrict the linked server not to access system databases.

Thank you

SQL Server Database Engine
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 120.2K Reputation points MVP
    2025-03-17T22:35:32.8066667+00:00

    I don't know exactly how you set up the linked servers, nor do I know what you mean with "accessing the system databases".

    But, generally, you cannot lock out users from the system databases, since they have the guest user enabled, and you cannot (or at least should not disable that). And login over linked server is just like any other login as far as the target server is concerned.

    1 person found this answer helpful.
    0 comments No comments

Your answer

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