I am trying to get my local SQL server to pull data from another table on another server (remote server). I can manually click on the server and dump the data into my local server, but I can't figure out a way to schedule the job to run using SQL Server Agent.
Basically, it should be setup like this, I think.
Select * into [Server2].[DB2].[dbo].[PRFT_LOSS]
from [Server1].[DB1].[dbo].[PRFT_LOSS]
But, again, when I set this up to run on the scheduler, the job fails. I could swear I did this a few years ago, at another company. Is this possible or not? If SQL Server Agent doesn't allow a user to contact a remote server, can I set this up as a batch job, and use Windows Task Scheduler to run the job? I am using SQL Server 2008. I want this task to be automated. Thanks.