So my SSIS Package is using a Linked Server to access our Test Server from our Development Server. Our Test SQL Server is configured to Send and run [msdb].[dbo].[sp_send_dbmail]; our Development Server is not. So my SSIS Package runs an Execute SQL Task to actually run [msdb].[dbo].[sp_send_dbmail] and Send an Email out of the SSIS Package using the Test Server Connection. The Connection Manager to our Test Server is using my credentials and Windows Authentication. The Package runs like a charm producing the Email in Microsoft Visual Studio...Microsoft Visual Studio Professional 2017 Version 15.8.7. Microsoft SQL Server 2014.
So my first question is what is the config file where you can invoke Email capability from SQL Server and where is it normally located? I think I've gone down that rabbit hole before...I just cannot remember the config file contents and syntax to enable Email capability...or am I wwwaaayyy out of whack?
My SSIS Package is currently set-up to use Security/ProtectionLevel/DontSaveSensitive. Now there are Service Accounts to our Test Server and I actually changed the credentials to use the Service Account and provided the ServerName and ServerPassword as Variables and changed the Connection Manager Properties and Expression for Password and ServerName.
(Trying to give as much background as possible....Sorry...)
Now I schedule a SQL Server Job. Simply copied the .dtsx from my Visual Studio Project to where the Development Server normally executes our SSIS Packages. I have no Configuration file currently. I did see that as a possible solution but cannot even seem to find Package Configurations under SSIS in Visual Studio. The Linked Server from our Development Server is defined to useBe made using the login's current security context. I am at the liberty to change that on our Development and Test Servers if need be.
So when it goes and tries to execute the Job in SQL Server Agent it comes back saying...
Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E4D Description: "Login failed for user '<User Name>
I have Googled this and cannot seem to find a solution. Some say to create a Configuration File and reference that in your SQL Server Job Step. Others have said to change the Security on the Package in Project back in Microsoft Visual Studio.
I'm at a point now that I have tried soooooo many things I can't remember what I have tried and what I have not tried.
Can someone please help me grind through this and get this to work. Sooooo frustrating.
Thanks for your review and am hopeful for a reply.