I have a linked server setup and need to pull data from the linked server into my main server. It feels painful to do using the whole server name. I'm trying to see if I can establish the name upfront then use in the rest of my query below.
Such as this:
Linkedserver.Database.dbo.Table as Link1
then below in my queries be able to have this work:
select * from Link1
or
select * from main-server left join Link1