SQL: Linked Servers: Don't hard code server names
I’m not a great fan of linked servers in SQL Server but they are often necessary. If I’m working with the latest version of SQL Server, I really prefer to use External Data Sources and External Tables. But not everyone is on the latest version. In the meantime, what I see all the time, is people hardcoding server names like this:
SDUPROD2022.WWIDB.Payroll.Employees
That makes your code really hard to manage. One option to get around that is to use synonyms.
2026-03-09


