So the Linked Server is setup on SERVER1. We run a SQL Server Stored Procedure from SERVER1 using [SERVER2].[msdb].[sp_send_dbmail] and it works like a charm. WahLah...Email comes through Outlook. If we try running via a SSIS Package using SERVER2 as Connection Manager and then setup a job on SERVER1 we get the following error...
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E4D Description:"Login failed for user '(Service Account)'.". End Error Code: 0xC00291EC Source: Execute SQL Task Execute SQL Task Description: Failed to acquire connection "(Server).(Database Name)". Connection may not be configured correctly or you may not have the right permissions on this connection. End Error DTExec: The package execution returned DTSER_FAILURE (1).
I have looke high and low to try and resolve this and cannot seem to find anything.
What security permissions are missing form the Linked Server Service Account? Is it something related to SQL Server Security? Or something related to the Service Account Active Directory set-up? A Server setup switch?
If I try running the same SSIS Package on SERVER2 as a SQL Server Agent Job, it runs like a charm!
What am I missing here? And please don't come back and say just run it on SERVER2 because it truly has to run on SERVER1.
Thanks for your review and am hopeful for a reply.