The connection manager uses SMO Connection Manager in the Transfer SQL Server Objects Task, which is different than the connection managers for OLEDB, ADO & ADO.Net in the Execute SQL Task.
You probably need to use a different method for this.
Thomas
Thomas LeBlanc, MVP Data Platform Consultant