I am facing the following configuration in my 2014/2016 SSIS environment.
All the connections in my SSIS package are configured to use a project parameter such as connection string and another project parameter with the password (sensitive). Well, everything works perfectly, but if I put multiple tasks without precedence to run, the package starts to fail. I did an analysis on the SQL Server used in the OLEDB Source and checked that the failures occur due to the wrong password. The strange thing is that while at the same time that the task presents a password error, another task in parallel, using the same connection string, can connect to the database. I came to the conclusion that the problem is in the configuration via project parameter, since if I remove the connection variables and directly use the server and the password, all tasks are executed without problem.
Important. Connections are made via SQL Server Authentication.
I found in the site (https://dba.stackexchange.com/questions/102570/ssis-package-hits-login-failed-for-user-when-simultaneous-operations-occur-aga) a problem very similar to mine.
I made a simple example, I created a package with 5 identical loops that have a stript task and a data flow with oledb source, both with the SQL command "SELECT 1 TEST", connecting in the same base.
When I use the parameter in the connection string, several times the packet fails with the message:
[Connection manager "xxx"] Error: SSIS Error Code DTS_E_OLEDBERROR An OLE DB error has occured Error code: 0x80040E4D.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E4D Description: "Login failed for user 'xxxxxx'."
When I do not use parameters in the connection string, and I directly inform the user and password in the connector, the message does not appear once.
What I would like to know is if anyone knows why this occurs?
In large environments, how do you use the connection manager settings directly on the connector or use design parameters?
Thank you.
Package test
Connection configuration