문제

My team is migrating a SQL 2012 server with an extensive list of linked servers to SQL 2016. My task is to script the creation of linked servers on the new server.

It looks like I have all the information I need to create the script in sys.servers but am having trouble finding where local logins are mapped to the linked servers.

도움이 되었습니까?

해결책

You'll find the linked servers login mappings in sys.linked_logins view.

This, in turn accesses the master.sys.syslnklgns table (in case this gives something useful), but you can only access the real systems tables when you connect using the Dedicated Admin Connection (/A with sqlcmd.exe).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top