I'm trying to copy stuff from 1 server to another, but I dont want to hardcode the server string. I'd like to do what I have below, but it wont work. Any ideas?
DECLARE @server as varchar(100)
SET @server = 'stageServer1'
SELECT * FROM @server + '.database.tablename'
Steven