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. I really wish the on-premises product supported External Data Sources and External Tables. But in the meantime, what I see all the time, is people hardcoding server names like this:
SDUPROD2016.WWIDB.Payroll.Employees
That makes your code really hard to manage. One option to get around that is to use synonyms.
Instead of sprinkling references to that table all through the code, you can create a synonym for it like this:
2017-11-06